Searched refs:cpuInfo (Results 1 – 8 of 8) sorted by relevance
/developtools/profiler/host/smartperf/client/client_command/ |
D | CPU.cpp | 118 for (auto &cpuInfo : sysCpuUsage.cpuInfos) { in GetCpuUsage() local 119 cpuUsageInfos.cpuId = cpuInfo.cpuId; in GetCpuUsage() 120 cpuUsageInfos.userUsage = cpuInfo.userUsage; in GetCpuUsage() 121 cpuUsageInfos.niceUsage = cpuInfo.niceUsage; in GetCpuUsage() 122 cpuUsageInfos.systemUsage = cpuInfo.systemUsage; in GetCpuUsage() 123 cpuUsageInfos.idleUsage = cpuInfo.idleUsage; in GetCpuUsage() 124 cpuUsageInfos.ioWaitUsage = cpuInfo.ioWaitUsage; in GetCpuUsage() 125 cpuUsageInfos.irqUsage = cpuInfo.irqUsage; in GetCpuUsage() 126 cpuUsageInfos.softIrqUsage = cpuInfo.softIrqUsage; in GetCpuUsage() 128 LOGI("UsageCpuId: %s", cpuInfo.cpuId.c_str()); in GetCpuUsage() [all …]
|
D | sp_task.cpp | 265 std::map<std::string, std::string> cpuInfo = SPUtils::GetCpuInfo(); in StopTask() local 270 destMap.insert(cpuInfo.begin(), cpuInfo.end()); in StopTask()
|
/developtools/smartperf_host/trace_streamer/test/unittest/pbreader_parser/ |
D | pbreader_cpu_data_parser_test.cpp | 69 auto cpuInfo(std::make_unique<CpuData>()); in SetCpuData() local 70 cpuInfo->set_total_load(cpudataInfo.total_load); in SetCpuData() 71 cpuInfo->set_user_load(cpudataInfo.user_load); in SetCpuData() 72 cpuInfo->set_sys_load(cpudataInfo.sys_load); in SetCpuData() 73 cpuInfo->set_process_num(cpudataInfo.process_num); in SetCpuData() 76 cpuInfo->set_allocated_cpu_usage_info(cpuUsageInfo); in SetCpuData() 80 cpuInfo->SerializeToString(&cpuData); in SetCpuData() 97 auto cpuInfo = std::make_unique<CpuData>(); variable 99 cpuInfo->SerializeToString(&cpuData);
|
/developtools/profiler/device/plugins/process_plugin/test/unittest/ |
D | process_plugin_unittest.cpp | 231 CpuInfo cpuInfo = processData.processesinfo()[i].cpuinfo(); variable 232 EXPECT_FLOAT_EQ(cpuInfo.cpu_usage(), cpuDataVec[i].cpuUsage); 233 EXPECT_EQ(cpuInfo.thread_sum(), cpuDataVec[i].threadSum); 234 EXPECT_EQ(cpuInfo.cpu_time_ms(), cpuDataVec[i].cpuTimeMs); 320 CpuInfo cpuInfo = processData.processesinfo()[i].cpuinfo(); variable 327 EXPECT_FLOAT_EQ(cpuInfo.cpu_usage(), cpuDataVec[i].cpuUsage); 328 EXPECT_EQ(cpuInfo.thread_sum(), cpuDataVec[i].threadSum); 329 EXPECT_EQ(cpuInfo.cpu_time_ms(), cpuDataVec[i].cpuTimeMs);
|
/developtools/profiler/device/plugins/process_plugin/src/ |
D | process_data_plugin.cpp | 273 auto* cpuInfo = processinfo->mutable_cpuinfo(); in WriteProcessInfo() local 276 WriteCpuUsageData(pid, *cpuInfo); in WriteProcessInfo() 277 WriteThreadData(pid, *cpuInfo); in WriteProcessInfo() 314 template <typename T> bool ProcessDataPlugin::WriteThreadData(int pid, T& cpuInfo) in WriteThreadData() argument 332 cpuInfo.set_thread_sum(i); in WriteThreadData() 354 template <typename T> bool ProcessDataPlugin::WriteCpuUsageData(int pid, T& cpuInfo) in WriteCpuUsageData() argument 379 cpuInfo.set_cpu_usage(usage * PERCENT); in WriteCpuUsageData() 381 cpuInfo.set_cpu_time_ms(cpuTime); in WriteCpuUsageData()
|
/developtools/profiler/device/plugins/process_plugin/include/ |
D | process_data_plugin.h | 79 template <typename T> bool WriteCpuUsageData(int pid, T& cpuInfo); 86 template <typename T> bool WriteThreadData(int pid, T& cpuInfo);
|
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/process_parser/ |
D | pbreader_process_parser.cpp | 48 … auto cpuInfo = std::make_unique<CpuInfo>(cpuInfoParser.cpu_usage(), cpuInfoParser.thread_sum(), in Parse() local 54 … liveProcess->SetLiveProcess(ts, std::move(processInfo), std::move(cpuInfo), std::move(pssInfo), in Parse()
|
/developtools/profiler/device/plugins/diskio_plugin/include/ |
D | io_stats.h | 163 auto* cpuInfo = pluginStatsData.add_cpuinfo(); in PutCpuStatsData() local 164 CalcCpuStats(cpuData, *cpuInfo); in PutCpuStatsData()
|