| /developtools/hiperf/test/unittest/common/native/ |
| D | cpu_usage_test.cpp | 195 float cpuUsage = 0.0; in GetAverageCpuUsage() local 200 cpuUsage += GetCpuUsageRatio(pid); in GetAverageCpuUsage() 207 cpuUsage = HUNDRED * cpuUsage / count; in GetAverageCpuUsage() 208 return cpuUsage; in GetAverageCpuUsage() 223 float cpuUsage = GetAverageCpuUsage(pid, timeOut); variable 224 EXPECT_LE(cpuUsage, F100_FP_CPU_LIMIT_SYSTEM); 239 float cpuUsage = GetAverageCpuUsage(pid, timeOut); variable 240 EXPECT_LE(cpuUsage, F500_FP_CPU_LIMIT_SYSTEM); 255 float cpuUsage = GetAverageCpuUsage(pid, timeOut); variable 256 EXPECT_LE(cpuUsage, F1000_FP_CPU_LIMIT_SYSTEM); [all …]
|
| /developtools/smartperf_host/ide/test/trace/bean/ |
| D | CpuUsage.test.ts | 19 let cpuUsage = new CpuUsage(); variable 23 cpuUsage = { 37 expect(cpuUsage).not.toBeUndefined(); 38 expect(cpuUsage).toMatchInlineSnapshot( 70 cpuUsage = { 77 expect(cpuUsage).toMatchInlineSnapshot(
|
| /developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/ |
| D | htrace_cpu_data_parser.cpp | 44 auto cpuUsage = std::make_unique<TsCpuData>(); in Parse() local 46 cpuUsage->SetCpuUsage(ts); in Parse() 47 cpuUsage->SetExtInfo(cpuData.total_load(), userLoad, sysLoad, process_num); in Parse() 48 cpuData_.push_back(std::move(cpuUsage)); in Parse()
|
| D | htrace_process_parser.h | 63 CpuInfo(double cpuUsage, int32_t threadSum, uint64_t cpuTimeMs) in CpuInfo() 64 : cpuUsage(cpuUsage), threadSum(threadSum), cpuTimeMs(cpuTimeMs) in CpuInfo() 67 double cpuUsage; member
|
| D | htrace_process_parser.cpp | 92 …)->processInfo_->uid, std::to_string((*itor)->processInfo_->uid), (*itor)->cpuUsageData_->cpuUsage, in Finish()
|
| /developtools/smartperf_host/ide/test/trace/component/trace/ |
| D | TimerShaftElement.test.ts | 74 timerShaftElement.cpuUsage = { 81 expect(timerShaftElement.cpuUsage).toBeUndefined(); 196 timerShaftElement.rangeRuler.cpuUsage = jest.fn(() => true); 197 expect(timerShaftElement.cpuUsage).toBe(undefined);
|
| /developtools/smartperf_host/ide/test/trace/database/ui-worker/ |
| D | ProcedureWorkerTimeline.test.ts | 125 rangeRuler.cpuUsage = true; 126 expect(rangeRuler.cpuUsage).toBeUndefined();
|
| /developtools/profiler/device/plugins/process_plugin/test/unittest/ |
| D | process_plugin_unittest.cpp | 55 double cpuUsage; member 165 double cpuUsage = static_cast<double>(cpuTimeMs) / bootTime * PERCENT; in GetCpuData() local 166 cpuDataVec.push_back({cpuUsage, 1, cpuTimeMs}); in GetCpuData() 232 EXPECT_FLOAT_EQ(cpuInfo.cpu_usage(), cpuDataVec[i].cpuUsage); 327 EXPECT_FLOAT_EQ(cpuInfo.cpu_usage(), cpuDataVec[i].cpuUsage);
|
| /developtools/profiler/device/plugins/cpu_plugin/test/unittest/ |
| D | cpu_data_plugin_unittest.cpp | 236 void GetCpuUsage(TestCpuUsage& cpuUsage, int64_t Hz) in GetCpuUsage() argument 243 cpuUsage.userLoad = (static_cast<double>(userTime) / bootTime) * PERCENT; in GetCpuUsage() 244 cpuUsage.sysLoad = (static_cast<double>(sysTime) / bootTime) * PERCENT; in GetCpuUsage() 245 cpuUsage.totalLoad = (static_cast<double>(totalTime) / bootTime) * PERCENT; in GetCpuUsage() 294 TestCpuUsage cpuUsage; variable 300 GetCpuUsage(cpuUsage, Hz); 310 EXPECT_FLOAT_EQ(cpuData.user_load(), cpuUsage.userLoad); 311 EXPECT_FLOAT_EQ(cpuData.sys_load(), cpuUsage.sysLoad); 312 EXPECT_FLOAT_EQ(cpuData.total_load(), cpuUsage.totalLoad);
|
| /developtools/smartperf_host/ide/src/trace/component/trace/ |
| D | TimerShaftElement.ts | 150 set cpuUsage(value: Array<{ cpu: number; ro: number; rate: number }>) { method in TimerShaftElement 154 this._rangeRuler.cpuUsage = this._cpuUsage; 201 this._rangeRuler.cpuUsage = [];
|
| /developtools/profiler/host/smartperf/client/client_command/ |
| D | CPU.cpp | 151 processCpuInfo["ProcCpuUsage"] = std::to_string(data.cpuUsage * oneHundred); in GetSysProcessCpuLoad() 157 LOGI("ProcCpuUsage: %s", std::to_string(data.cpuUsage).c_str()); in GetSysProcessCpuLoad()
|
| /developtools/smartperf_host/ide/test/trace/database/logic-worker/ |
| D | ProcedureLogicWorkerSchedulingAnalysis.test.ts | 69 let cpuUsage = new CpuUsage(); variable 70 expect(cpuUsage).not.toBeUndefined();
|
| /developtools/smartperf_host/ide/test/trace/component/trace/timer-shaft/ |
| D | RangeRuler.test.ts | 69 rangeRuler.cpuUsage = [
|
| /developtools/smartperf_host/ide/src/trace/component/chart/ |
| D | SpChartManager.ts | 235 if (this.trace.timerShaftEL) this.trace.timerShaftEL.cpuUsage = rates;
|
| /developtools/profiler/hidebug/interfaces/js/kits/napi/ |
| D | napi_hidebug.cpp | 412 double cpuUsage = dumpUsage->GetCpuUsage(pid); in GetCpuUsage() local 413 napi_create_double(env, cpuUsage, &cpuUsageValue); in GetCpuUsage()
|
| /developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/htrace/ |
| D | activity_monitor_stdtype.cpp | 115 double cpuUsage, in AppendNewData() argument 129 cpuUsage_.emplace_back(cpuUsage); in AppendNewData()
|
| D | activity_monitor_stdtype.h | 78 double cpuUsage,
|
| /developtools/smartperf_host/ide/src/trace/component/trace/timer-shaft/ |
| D | RangeRuler.ts | 154 set cpuUsage(value: Array<{ cpu: number; ro: number; rate: number }>) { method in RangeRuler
|
| /developtools/smartperf_host/trace_streamer/test/unittest/table/ |
| D | table_test.cpp | 630 double cpuUsage = 1; variable 638 … parentProcessID, uid, userName, cpuUsage, pssInfo,
|
| /developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorkerTimeline.ts | 427 set cpuUsage(value: Array<{ cpu: number; ro: number; rate: number }>) {
|