| 11 | using namespace pmon::util; |
| 12 | |
| 13 | std::string CpuTelemetry::GetCpuName() { |
| 14 | if (cpu_name_.size() == 0) { |
| 15 | std::wstring local_cpu_name{}; |
| 16 | if (ExecuteWQLProcessorNameQuery(local_cpu_name)) { |
| 17 | cpu_name_ = str::TrimWhitespace(str::ToNarrow(local_cpu_name)); |
| 18 | } else { |
| 19 | cpu_name_ = "UNKNOWN_CPU"; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | return cpu_name_; |
| 24 | } |
| 25 | |
| 26 | bool CpuTelemetry::ExecuteWQLProcessorNameQuery( |
| 27 | std::wstring& processor_name) { |
nothing calls this directly
no test coverage detected