/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/policy/ |
H A D | cpu_policy.cpp | 52 int32_t cpuUsage = INIT_CPU; in GetCpuUsage() local 58 cpuUsage = static_cast<int>(collectResult.data * UNIT); in GetCpuUsage() 60 return cpuUsage; in GetCpuUsage() 65 int32_t cpuUsage = GetCpuUsage(); in GetPolicyMaxRunning() local 67 if (cpuUsage < CPU_LOW) { in GetPolicyMaxRunning() 69 } else if (cpuUsage >= CPU_LOW && cpuUsage < CPU_NORMAL) { in GetPolicyMaxRunning() 71 } else if (cpuUsage >= CPU_NORMAL && cpuUsage < CPU_HIGH) { in GetPolicyMaxRunning() 76 WS_HILOGD("cpu_usage: %{public}d, policyRes: %{public}d", cpuUsage, policyRes); in GetPolicyMaxRunning()
|
/ohos5.0/foundation/resourceschedule/work_scheduler/services/test/src/policy/ |
H A D | cpu_policy_test.cpp | 57 int32_t cpuUsage = cpuPolicy_->GetCpuUsage(); variable 58 EXPECT_EQ(cpuUsage, 15); 70 int32_t cpuUsage = cpuPolicy_->GetCpuUsage(); variable 71 EXPECT_TRUE(cpuUsage >= 0 && cpuUsage <= 100); 82 int32_t cpuUsage = cpuPolicy_->GetCpuUsage(); variable 83 EXPECT_TRUE(cpuUsage >= 0 && cpuUsage <= 100);
|
/ohos5.0/base/hiviewdfx/hidumper/interfaces/innerkits/ |
H A D | dump_usage.cpp | 59 double cpuUsage = 0.00; in GetCpuUsage() local 61 dumpManagerCpuClient.GetCpuUsageByPid(pid, cpuUsage); in GetCpuUsage() 62 …OGD(MODULE_CPU_SERVICE, "GetCpuUsage end, pid = %{public}d, cpuUsage = %{public}f", pid, cpuUsage); in GetCpuUsage() 63 return cpuUsage; in GetCpuUsage()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-performance-analysis-kit/ |
H A D | _hi_debug___thread_cpu_usage.md | 21 | double [cpuUsage](#cpuusage) | 线程CPU使用率百分比。 | 28 ### cpuUsage subsection 31 double HiDebug_ThreadCpuUsage::cpuUsage
|
H A D | errorcode-hiviewdfx-hidebug-cpuusage.md | 15 当前cpuUsage的状态是异常的。
|
H A D | js-apis-hidebug.md | 187 let cpuUsage: number = hidebug.getCpuUsage(); 468 …hilog.info(0x0000, "example", "threadId=%{public}d, cpuUsage=%{public}f", appThreadCpuUsage[ii].th… 469 appThreadCpuUsage[ii].cpuUsage); 619 let cpuUsage: number = hidebug.getSystemCpuUsage(); 826 | cpuUsage | number | 是 | 否 | 线程CPU使用率 |
|
/ohos5.0/docs/en/application-dev/reference/apis-performance-analysis-kit/ |
H A D | _hi_debug___thread_cpu_usage.md | 21 | double [cpuUsage](#cpuusage) | Thread CPU usage, in percentage. | 28 ### cpuUsage subsection 31 double HiDebug_ThreadCpuUsage::cpuUsage
|
/ohos5.0/base/hiviewdfx/hidumper/services/zidl/src/ |
H A D | dump_broker_cpu_proxy.cpp | 56 int32_t DumpBrokerCpuProxy::GetCpuUsageByPid(int32_t pid, double &cpuUsage) in GetCpuUsageByPid() argument 78 if (!reply.ReadDouble(cpuUsage)) { in GetCpuUsageByPid() 81 if (cpuUsage < 0) { in GetCpuUsageByPid()
|
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/ |
H A D | ark_idle_monitor.cpp | 160 double cpuUsage = GetCpuUsage(); in NotifyTryCompressGC() local 161 if (cpuUsage >= IDLE_CPU_USAGE) { in NotifyTryCompressGC() 163 cpuUsage); in NotifyTryCompressGC() 174 mainThreadHandler_->PostTask(task, "ARKTS_IDLE_COMPRESS::usaged:" + std::to_string(cpuUsage), in NotifyTryCompressGC()
|
/ohos5.0/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/resource/ |
H A D | cpu.h | 62 double cpuUsage = 0; member 74 double cpuUsage = 0; member
|
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/task/ |
H A D | cpu_perf_dump.cpp | 74 return info1.cpuUsage > info2.cpuUsage; in CompareCpuUsage() 105 sumCpuUsage += info.cpuUsage; in CheckAndDumpPerfData()
|
/ohos5.0/base/hiviewdfx/hidumper/test/unittest/common/ |
H A D | hidumper_cpu_service_test.cpp | 90 double cpuUsage; variable 91 int ret = dumpManagerCpuService->GetCpuUsageByPid(TEST_PID, cpuUsage);
|
H A D | hidumper_cpu_zidl_test.cpp | 42 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) in GetCpuUsageByPid() argument
|
/ohos5.0/base/hiviewdfx/hidumper/test/innerkits_test/ |
H A D | main.cpp | 67 float cpuUsage = GetCpuUsage(pid); in main() local 68 printf("cpuUsage:%.1f\n", cpuUsage); in main()
|
/ohos5.0/base/hiviewdfx/hidumper/services/native/src/ |
H A D | dump_manager_cpu_client.cpp | 45 int32_t DumpManagerCpuClient::GetCpuUsageByPid(int32_t pid, double &cpuUsage) in GetCpuUsageByPid() argument 51 int32_t ret = proxy_->GetCpuUsageByPid(pid, cpuUsage); in GetCpuUsageByPid()
|
H A D | dump_manager_cpu_service.cpp | 146 int DumpManagerCpuService::GetCpuUsageByPid(int32_t pid, double &cpuUsage) in GetCpuUsageByPid() argument 158 cpuUsage = singleProcInfo->totalUsage / HUNDRED_PERCENT_VALUE; in GetCpuUsageByPid() 160 …ODULE_CPU_SERVICE, "GetCpuUsageByPid end, pid = %{public}d, cpuUsage = %{public}f", pid, cpuUsage); in GetCpuUsageByPid() 240 ptrProcInfo->totalUsage = cpuInfo.cpuUsage * HUNDRED_PERCENT_VALUE; in GetAllProcInfo() 263 specProc->totalUsage = collectResult.data.cpuUsage * HUNDRED_PERCENT_VALUE; in GetSingleProcInfo()
|
/ohos5.0/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
H A D | cpu_collector_test.cpp | 169 std::cout << "proc.cpuUsage=" << collectResult.data.cpuUsage << std::endl; 178 ASSERT_GE(collectResult.data.cpuUsage, 0); 332 ASSERT_TRUE(collectResult2.data[0].cpuUsage >= 0); 338 ASSERT_TRUE(collectResult3.data[0].cpuUsage >= 0); 358 ASSERT_TRUE(collectResult2.data[0].cpuUsage >= 0); 364 ASSERT_TRUE(collectResult3.data[0].cpuUsage >= 0);
|
/ohos5.0/docs/zh-cn/application-dev/dfx/ |
H A D | hidebug-guidelines-ndk.md | 64 double cpuUsage = OH_HiDebug_GetSystemCpuUsage(); 65 OH_LOG_INFO(LogType::LOG_APP, "GetSystemCpuUsage: %{public}f", cpuUsage);
|
/ohos5.0/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/ |
H A D | idump_cpu_broker.h | 31 virtual int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) = 0;
|
H A D | dump_broker_cpu_proxy.h | 32 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) override;
|
H A D | dump_manager_cpu_client.h | 32 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage);
|
/ohos5.0/docs/en/application-dev/dfx/ |
H A D | hidebug-guidelines-ndk.md | 64 double cpuUsage = OH_HiDebug_GetSystemCpuUsage(); 65 OH_LOG_INFO(LogType::LOG_APP, "GetSystemCpuUsage: %{public}f", cpuUsage);
|
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/storage/ |
H A D | cpu_storage.cpp | 79 return cpuCollectionInfo.cpuUsage >= storeFilteringThresholdOfCpuUsage; in IsValidCpuUsage() 326 … bucket.PutDouble(COLUMN_CPU_USAGE, TruncateDecimalWithNBitPrecision(cpuCollectionInfo.cpuUsage)); in StoreProcessData() 343 bucket.PutDouble(COLUMN_CPU_USAGE, TruncateDecimalWithNBitPrecision(cpuCollection.cpuUsage)); in StoreThreadData()
|
/ohos5.0/base/hiviewdfx/hidumper/services/native/include/ |
H A D | dump_manager_cpu_service.h | 59 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) override;
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | thread_state_info_collector.cpp | 204 threadCpuStatInfo.cpuUsage = threadCpuStatInfo.uCpuUsage + threadCpuStatInfo.sCpuUsage; in CalculateThreadCpuStatInfo()
|