SPU Profiler preview

Add option "SPU Profiler" (disabled by default).
Works only with SPU recompilers.
Results are flushed on pausing.
This commit is contained in:
Nekotekina 2019-10-14 20:41:31 +03:00
parent 1a9e06d3c6
commit c69fe0f664
7 changed files with 289 additions and 1 deletions

View file

@ -1677,6 +1677,9 @@ bool Emulator::Pause()
return m_state.compare_and_swap_test(system_state::ready, system_state::paused);
}
// Signal profilers to print results (if enabled)
cpu_thread::flush_profilers();
GetCallbacks().on_pause();
// Update pause start time