summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-07-18 14:04:49 +0200
committerGitHub <noreply@github.com>2017-07-18 14:04:49 +0200
commit35eee446c74b642b6b5fd54eeadb2d8062bc2139 (patch)
treeb537192701ae290292d231cecb773af7897a4d8b /src/core/core.cpp
parentMerge pull request #2804 from Kloen/theming (diff)
parenttelemetry: Log performance, configuration, and system data. (diff)
downloadyuzu-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.cpp10
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();