summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-07 03:41:53 +0100
committerGitHub <noreply@github.com>2019-03-07 03:41:53 +0100
commitd2ff93c31952d5f9c278ea86b8fef177f78d226e (patch)
treebbdbd5c6b1013930170f80ec3b882271effb695f /src/core/core.cpp
parentMerge pull request #2199 from lioncash/arbiter (diff)
parentcore/core: Remove the global telemetry accessor function (diff)
downloadyuzu-d2ff93c31952d5f9c278ea86b8fef177f78d226e.tar
yuzu-d2ff93c31952d5f9c278ea86b8fef177f78d226e.tar.gz
yuzu-d2ff93c31952d5f9c278ea86b8fef177f78d226e.tar.bz2
yuzu-d2ff93c31952d5f9c278ea86b8fef177f78d226e.tar.lz
yuzu-d2ff93c31952d5f9c278ea86b8fef177f78d226e.tar.xz
yuzu-d2ff93c31952d5f9c278ea86b8fef177f78d226e.tar.zst
yuzu-d2ff93c31952d5f9c278ea86b8fef177f78d226e.zip
Diffstat (limited to '')
-rw-r--r--src/core/core.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 6dda20faa..d741ef90d 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -183,13 +183,13 @@ struct System::Impl {
void Shutdown() {
// Log last frame performance stats
- auto perf_results = GetAndResetPerfStats();
- Telemetry().AddField(Telemetry::FieldType::Performance, "Shutdown_EmulationSpeed",
- perf_results.emulation_speed * 100.0);
- Telemetry().AddField(Telemetry::FieldType::Performance, "Shutdown_Framerate",
- perf_results.game_fps);
- Telemetry().AddField(Telemetry::FieldType::Performance, "Shutdown_Frametime",
- perf_results.frametime * 1000.0);
+ const auto perf_results = GetAndResetPerfStats();
+ telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_EmulationSpeed",
+ perf_results.emulation_speed * 100.0);
+ telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Framerate",
+ perf_results.game_fps);
+ telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_Frametime",
+ perf_results.frametime * 1000.0);
is_powered_on = false;