Searched refs:cpuUsageInfo (Results 1 – 4 of 4) sorted by relevance
| /developtools/profiler/device/plugins/cpu_plugin/src/ |
| D | test_main.cpp | 46 CpuUsageInfo cpuUsageInfo = cpuData.cpu_usage_info(); in Report() local 47 … std::cout << "prev_process_cpu_time_ms:" << cpuUsageInfo.prev_process_cpu_time_ms() << std::endl; in Report() 48 … std::cout << "prev_system_cpu_time_ms:" << cpuUsageInfo.prev_system_cpu_time_ms() << std::endl; in Report() 49 … std::cout << "prev_system_boot_time_ms:" << cpuUsageInfo.prev_system_boot_time_ms() << std::endl; in Report() 50 std::cout << "process_cpu_time_ms:" << cpuUsageInfo.process_cpu_time_ms() << std::endl; in Report() 51 std::cout << "system_cpu_time_ms:" << cpuUsageInfo.system_cpu_time_ms() << std::endl; in Report() 52 std::cout << "system_boot_time_ms:" << cpuUsageInfo.system_boot_time_ms() << std::endl; in Report() 54 for (int i = 0; i < cpuUsageInfo.cores_size(); i++) { in Report() 55 CpuCoreUsageInfo cpuCoreUsageInfo = cpuUsageInfo.cores()[i]; in Report()
|
| D | cpu_data_plugin.cpp | 238 void CpuDataPlugin::WriteProcessCpuUsage(CpuUsageInfo& cpuUsageInfo, const char* pFile, uint32_t fi… in WriteProcessCpuUsage() argument 263 cpuUsageInfo.set_prev_process_cpu_time_ms(prevProcessCpuTime_); in WriteProcessCpuUsage() 264 cpuUsageInfo.set_process_cpu_time_ms(usageTime); in WriteProcessCpuUsage() 380 auto* cpuUsageInfo = cpuData.mutable_cpu_usage_info(); in WriteSystemCpuUsage() local 407 cpuUsageInfo->set_prev_system_cpu_time_ms(prevCpuTimeData_.systemUsageTime); in WriteSystemCpuUsage() 408 cpuUsageInfo->set_prev_system_boot_time_ms(prevCpuTimeData_.systemBootTime); in WriteSystemCpuUsage() 409 cpuUsageInfo->set_system_cpu_time_ms(cpuTimeData.systemUsageTime); in WriteSystemCpuUsage() 410 cpuUsageInfo->set_system_boot_time_ms(cpuTimeData.systemBootTime); in WriteSystemCpuUsage() 444 CpuCoreUsageInfo* cpuCore = cpuUsageInfo->add_cores(); in WriteSystemCpuUsage() 473 auto* cpuUsageInfo = data.mutable_cpu_usage_info(); in WriteCpuUsageInfo() local [all …]
|
| /developtools/profiler/device/plugins/cpu_plugin/test/unittest/ |
| D | cpu_data_plugin_unittest.cpp | 302 CpuUsageInfo cpuUsageInfo = cpuData.cpu_usage_info(); variable 303 EXPECT_EQ(cpuUsageInfo.prev_process_cpu_time_ms(), 0); 304 EXPECT_EQ(cpuUsageInfo.prev_system_cpu_time_ms(), 0); 305 EXPECT_EQ(cpuUsageInfo.prev_system_boot_time_ms(), 0); 306 EXPECT_EQ(cpuUsageInfo.process_cpu_time_ms(), processCpuTime); 307 EXPECT_EQ(cpuUsageInfo.system_cpu_time_ms(), systemCpuTime); 308 EXPECT_EQ(cpuUsageInfo.system_boot_time_ms(), systemBootTime); 314 ASSERT_EQ(cpuUsageInfo.cores_size(), 6); 316 CpuCoreUsageInfo cpuCoreUsageInfo = cpuUsageInfo.cores()[i - 1]; 439 auto* cpuUsageInfo = cpuData.mutable_cpu_usage_info(); variable [all …]
|
| /developtools/profiler/device/plugins/cpu_plugin/include/ |
| D | cpu_data_plugin.h | 79 void WriteProcessCpuUsage(CpuUsageInfo& cpuUsageInfo, const char* pFile, uint32_t fileLen);
|