diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-08-27 11:15:24 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-08-27 11:30:19 -0400 |
| commit | 7aa305ea358ee1574f1036493411aa2cdf86458f (patch) | |
| tree | f3f0701b6e7744d95176587f9f23e426016ee9e8 /Source/Android | |
| parent | 88a91562b542f2066f14a0205aeea50f6d1d6125 (diff) | |
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.
Diffstat (limited to 'Source/Android')
| -rw-r--r-- | Source/Android/jni/MainAndroid.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index c5df6bfa29..a160786063 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -498,7 +498,8 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SetProfiling std::lock_guard<std::mutex> guard(s_host_identity_lock); Core::SetState(Core::State::Paused); JitInterface::ClearCache(); - Profiler::g_ProfileBlocks = enable; + JitInterface::SetProfilingState(enable ? JitInterface::ProfilingState::Enabled : + JitInterface::ProfilingState::Disabled); Core::SetState(Core::State::Running); } |
