diff options
| author | Mai <mai.iam2048@gmail.com> | 2023-03-27 10:31:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-27 10:31:53 -0400 |
| commit | c096ee64f2abdef2b095ce8092dcde4146d44fc0 (patch) | |
| tree | d9c15844712ea6aad1715cf74bdbfde1001caa90 /Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp | |
| parent | 0de2890351ef2e309abd7643a38b8505ba42de19 (diff) | |
| parent | 7f50c070b232b68df04609f60f02db559e97cc4f (diff) | |
Merge pull request #11696 from AdmiralCurtiss/jit-interface-class
JitInterface: Refactor to class, move to System.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp index 1be7d8c785..11f2a9a287 100644 --- a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp @@ -140,7 +140,8 @@ void CodeDiffDialog::ClearData() // Swap is used instead of clear for efficiency in the case of huge m_include/m_exclude
std::vector<Diff>().swap(m_include);
std::vector<Diff>().swap(m_exclude);
- JitInterface::SetProfilingState(JitInterface::ProfilingState::Disabled);
+ Core::System::GetInstance().GetJitInterface().SetProfilingState(
+ JitInterface::ProfilingState::Disabled);
}
void CodeDiffDialog::ClearBlockCache()
@@ -150,7 +151,7 @@ void CodeDiffDialog::ClearBlockCache() if (old_state == Core::State::Running)
Core::SetState(Core::State::Paused);
- JitInterface::ClearCache();
+ Core::System::GetInstance().GetJitInterface().ClearCache();
if (old_state == Core::State::Running)
Core::SetState(Core::State::Running);
@@ -205,7 +206,7 @@ void CodeDiffDialog::OnRecord(bool enabled) }
m_record_btn->update();
- JitInterface::SetProfilingState(state);
+ Core::System::GetInstance().GetJitInterface().SetProfilingState(state);
}
void CodeDiffDialog::OnInclude()
@@ -271,7 +272,7 @@ std::vector<Diff> CodeDiffDialog::CalculateSymbolsFromProfile() {
Profiler::ProfileStats prof_stats;
auto& blockstats = prof_stats.block_stats;
- JitInterface::GetProfileResults(&prof_stats);
+ Core::System::GetInstance().GetJitInterface().GetProfileResults(&prof_stats);
std::vector<Diff> current;
current.reserve(20000);
@@ -391,7 +392,7 @@ void CodeDiffDialog::Update(bool include) m_exclude_size_label->setText(tr("Excluded: %1").arg(m_exclude.size()));
m_include_size_label->setText(tr("Included: %1").arg(m_include.size()));
- JitInterface::ClearCache();
+ Core::System::GetInstance().GetJitInterface().ClearCache();
if (old_state == Core::State::Running)
Core::SetState(Core::State::Running);
}
|
