mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Profiler: Migrate global g_ProfileBlocks boolean to JitOptions
This global belongs in the JitOptions structure, as it's a conditional setting (A.K.A. option) that changes the behavior of what the JIT does. Plus it keeps the scope of the variable constrained to the general area it's intended to be used and nothing further.
This commit is contained in:
@ -79,6 +79,14 @@ CPUCoreBase* GetCore()
|
||||
return g_jit;
|
||||
}
|
||||
|
||||
void SetProfilingState(ProfilingState state)
|
||||
{
|
||||
if (!g_jit)
|
||||
return;
|
||||
|
||||
g_jit->jo.profile_blocks = state == ProfilingState::Enabled;
|
||||
}
|
||||
|
||||
void WriteProfileResults(const std::string& filename)
|
||||
{
|
||||
Profiler::ProfileStats prof_stats;
|
||||
|
Reference in New Issue
Block a user