diff options
author | bunnei <bunneidev@gmail.com> | 2017-07-18 14:04:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 14:04:49 +0200 |
commit | 35eee446c74b642b6b5fd54eeadb2d8062bc2139 (patch) | |
tree | b537192701ae290292d231cecb773af7897a4d8b /src/core/core.cpp | |
parent | Merge pull request #2804 from Kloen/theming (diff) | |
parent | telemetry: Log performance, configuration, and system data. (diff) | |
download | yuzu-35eee446c74b642b6b5fd54eeadb2d8062bc2139.tar yuzu-35eee446c74b642b6b5fd54eeadb2d8062bc2139.tar.gz yuzu-35eee446c74b642b6b5fd54eeadb2d8062bc2139.tar.bz2 yuzu-35eee446c74b642b6b5fd54eeadb2d8062bc2139.tar.lz yuzu-35eee446c74b642b6b5fd54eeadb2d8062bc2139.tar.xz yuzu-35eee446c74b642b6b5fd54eeadb2d8062bc2139.tar.zst yuzu-35eee446c74b642b6b5fd54eeadb2d8062bc2139.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(); |