Home
last modified time | relevance | path

Searched refs:cpuUsage (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/policy/
H A Dcpu_policy.cpp52 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 Dcpu_policy_test.cpp57 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 Ddump_usage.cpp59 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.md21 | double [cpuUsage](#cpuusage) | 线程CPU使用率百分比。 |
28 ### cpuUsage subsection
31 double HiDebug_ThreadCpuUsage::cpuUsage
H A Derrorcode-hiviewdfx-hidebug-cpuusage.md15 当前cpuUsage的状态是异常的。
H A Djs-apis-hidebug.md187 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.md21 | 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 Ddump_broker_cpu_proxy.cpp56 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 Dark_idle_monitor.cpp160 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 Dcpu.h62 double cpuUsage = 0; member
74 double cpuUsage = 0; member
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/task/
H A Dcpu_perf_dump.cpp74 return info1.cpuUsage > info2.cpuUsage; in CompareCpuUsage()
105 sumCpuUsage += info.cpuUsage; in CheckAndDumpPerfData()
/ohos5.0/base/hiviewdfx/hidumper/test/unittest/common/
H A Dhidumper_cpu_service_test.cpp90 double cpuUsage; variable
91 int ret = dumpManagerCpuService->GetCpuUsageByPid(TEST_PID, cpuUsage);
H A Dhidumper_cpu_zidl_test.cpp42 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) in GetCpuUsageByPid() argument
/ohos5.0/base/hiviewdfx/hidumper/test/innerkits_test/
H A Dmain.cpp67 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 Ddump_manager_cpu_client.cpp45 int32_t DumpManagerCpuClient::GetCpuUsageByPid(int32_t pid, double &cpuUsage) in GetCpuUsageByPid() argument
51 int32_t ret = proxy_->GetCpuUsageByPid(pid, cpuUsage); in GetCpuUsageByPid()
H A Ddump_manager_cpu_service.cpp146 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 Dcpu_collector_test.cpp169 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 Dhidebug-guidelines-ndk.md64 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 Didump_cpu_broker.h31 virtual int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) = 0;
H A Ddump_broker_cpu_proxy.h32 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) override;
H A Ddump_manager_cpu_client.h32 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage);
/ohos5.0/docs/en/application-dev/dfx/
H A Dhidebug-guidelines-ndk.md64 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 Dcpu_storage.cpp79 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 Ddump_manager_cpu_service.h59 int32_t GetCpuUsageByPid(int32_t pid, double &cpuUsage) override;
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dthread_state_info_collector.cpp204 threadCpuStatInfo.cpuUsage = threadCpuStatInfo.uCpuUsage + threadCpuStatInfo.sCpuUsage; in CalculateThreadCpuStatInfo()

12