diff options
author | bunnei <bunneidev@gmail.com> | 2017-08-02 01:55:48 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-08-04 02:10:37 +0200 |
commit | a621ab68537bec0d9b3e49d29253fa378636a0a1 (patch) | |
tree | c09f56ff2f85b6bafb991e5abea29644f2d05f26 | |
parent | common: Add build timestamp to scm_rev. (diff) | |
download | yuzu-a621ab68537bec0d9b3e49d29253fa378636a0a1.tar yuzu-a621ab68537bec0d9b3e49d29253fa378636a0a1.tar.gz yuzu-a621ab68537bec0d9b3e49d29253fa378636a0a1.tar.bz2 yuzu-a621ab68537bec0d9b3e49d29253fa378636a0a1.tar.lz yuzu-a621ab68537bec0d9b3e49d29253fa378636a0a1.tar.xz yuzu-a621ab68537bec0d9b3e49d29253fa378636a0a1.tar.zst yuzu-a621ab68537bec0d9b3e49d29253fa378636a0a1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/telemetry_session.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index 841d6cfa1..22462f820 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -7,6 +7,7 @@ #include "common/assert.h" #include "common/scm_rev.h" #include "common/x64/cpu_detect.h" +#include "core/core.h" #include "core/settings.h" #include "core/telemetry_session.h" @@ -39,12 +40,18 @@ TelemetrySession::TelemetrySession() { std::chrono::system_clock::now().time_since_epoch()) .count()}; AddField(Telemetry::FieldType::Session, "Init_Time", init_time); + std::string program_name; + const Loader::ResultStatus res{System::GetInstance().GetAppLoader().ReadTitle(program_name)}; + if (res == Loader::ResultStatus::Success) { + AddField(Telemetry::FieldType::Session, "ProgramName", program_name); + } // Log application information const bool is_git_dirty{std::strstr(Common::g_scm_desc, "dirty") != nullptr}; AddField(Telemetry::FieldType::App, "Git_IsDirty", is_git_dirty); AddField(Telemetry::FieldType::App, "Git_Branch", Common::g_scm_branch); AddField(Telemetry::FieldType::App, "Git_Revision", Common::g_scm_rev); + AddField(Telemetry::FieldType::App, "BuildDate", Common::g_build_date); // Log user system information AddField(Telemetry::FieldType::UserSystem, "CPU_Model", Common::GetCPUCaps().cpu_string); |