diff options
author | bunnei <bunneidev@gmail.com> | 2017-07-13 04:19:34 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-07-18 03:32:28 +0200 |
commit | df8b9863f93da24e25d25f32e548605743ed8f66 (patch) | |
tree | b537192701ae290292d231cecb773af7897a4d8b /src/core/core.cpp | |
parent | Merge pull request #2804 from Kloen/theming (diff) | |
download | yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.gz yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.bz2 yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.lz yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.xz yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.tar.zst yuzu-df8b9863f93da24e25d25f32e548605743ed8f66.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 5429bcb26..d08f18623 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -168,6 +168,16 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { } void System::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); + + // Shutdown emulation session GDBStub::Shutdown(); AudioCore::Shutdown(); VideoCore::Shutdown(); |