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:
1 parent
88a91562b5
commit
7aa305ea35
8 files changed
+24
-11
No files matched your search
@@ -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