diff options
Diffstat (limited to 'src/core/telemetry_session.cpp')
| -rw-r--r-- | src/core/telemetry_session.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index a613889f0..bea05a09b 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp | |||
| @@ -7,13 +7,16 @@ | |||
| 7 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/file_util.h" | 8 | #include "common/file_util.h" |
| 9 | #include "common/scm_rev.h" | 9 | #include "common/scm_rev.h" |
| 10 | #ifdef ARCHITECTURE_x86_64 | ||
| 10 | #include "common/x64/cpu_detect.h" | 11 | #include "common/x64/cpu_detect.h" |
| 12 | #endif | ||
| 11 | #include "core/core.h" | 13 | #include "core/core.h" |
| 12 | #include "core/settings.h" | 14 | #include "core/settings.h" |
| 13 | #include "core/telemetry_session.h" | 15 | #include "core/telemetry_session.h" |
| 14 | 16 | ||
| 15 | namespace Core { | 17 | namespace Core { |
| 16 | 18 | ||
| 19 | #ifdef ARCHITECTURE_x86_64 | ||
| 17 | static const char* CpuVendorToStr(Common::CPUVendor vendor) { | 20 | static const char* CpuVendorToStr(Common::CPUVendor vendor) { |
| 18 | switch (vendor) { | 21 | switch (vendor) { |
| 19 | case Common::CPUVendor::INTEL: | 22 | case Common::CPUVendor::INTEL: |
| @@ -25,6 +28,7 @@ static const char* CpuVendorToStr(Common::CPUVendor vendor) { | |||
| 25 | } | 28 | } |
| 26 | UNREACHABLE(); | 29 | UNREACHABLE(); |
| 27 | } | 30 | } |
| 31 | #endif | ||
| 28 | 32 | ||
| 29 | static u64 GenerateTelemetryId() { | 33 | static u64 GenerateTelemetryId() { |
| 30 | u64 telemetry_id{}; | 34 | u64 telemetry_id{}; |
| @@ -113,7 +117,8 @@ TelemetrySession::TelemetrySession() { | |||
| 113 | AddField(Telemetry::FieldType::App, "BuildDate", Common::g_build_date); | 117 | AddField(Telemetry::FieldType::App, "BuildDate", Common::g_build_date); |
| 114 | AddField(Telemetry::FieldType::App, "BuildName", Common::g_build_name); | 118 | AddField(Telemetry::FieldType::App, "BuildName", Common::g_build_name); |
| 115 | 119 | ||
| 116 | // Log user system information | 120 | // Log user system information |
| 121 | #ifdef ARCHITECTURE_x86_64 | ||
| 117 | AddField(Telemetry::FieldType::UserSystem, "CPU_Model", Common::GetCPUCaps().cpu_string); | 122 | AddField(Telemetry::FieldType::UserSystem, "CPU_Model", Common::GetCPUCaps().cpu_string); |
| 118 | AddField(Telemetry::FieldType::UserSystem, "CPU_BrandString", | 123 | AddField(Telemetry::FieldType::UserSystem, "CPU_BrandString", |
| 119 | Common::GetCPUCaps().brand_string); | 124 | Common::GetCPUCaps().brand_string); |
| @@ -135,6 +140,9 @@ TelemetrySession::TelemetrySession() { | |||
| 135 | Common::GetCPUCaps().sse4_1); | 140 | Common::GetCPUCaps().sse4_1); |
| 136 | AddField(Telemetry::FieldType::UserSystem, "CPU_Extension_x64_SSE42", | 141 | AddField(Telemetry::FieldType::UserSystem, "CPU_Extension_x64_SSE42", |
| 137 | Common::GetCPUCaps().sse4_2); | 142 | Common::GetCPUCaps().sse4_2); |
| 143 | #else | ||
| 144 | AddField(Telemetry::FieldType::UserSystem, "CPU_Model", "Other"); | ||
| 145 | #endif | ||
| 138 | #ifdef __APPLE__ | 146 | #ifdef __APPLE__ |
| 139 | AddField(Telemetry::FieldType::UserSystem, "OsPlatform", "Apple"); | 147 | AddField(Telemetry::FieldType::UserSystem, "OsPlatform", "Apple"); |
| 140 | #elif defined(_WIN32) | 148 | #elif defined(_WIN32) |