Home
last modified time | relevance | path

Searched refs:cpuUsageOptional (Results 1 - 3 of 3) sorted by relevance

/developtools/profiler/hidebug/frameworks/hidebug_ndk/
H A Dhidebug_ndk.cpp34 auto cpuUsageOptional = OHOS::HiviewDFX::HidebugNativeInterface::CreateInstance()->GetSystemCpuUsage(); in OH_HiDebug_GetSystemCpuUsage() local
35 if (cpuUsageOptional.has_value()) { in OH_HiDebug_GetSystemCpuUsage()
36 return cpuUsageOptional.value(); in OH_HiDebug_GetSystemCpuUsage()
/developtools/profiler/hidebug/interfaces/cj/
H A Dhidebug_ffi.cpp164 auto cpuUsageOptional = HidebugNativeInterface::CreateInstance()->GetSystemCpuUsage(); in FfiHidebugGetSystemCpuUsage() local
165 if (cpuUsageOptional.has_value()) { in FfiHidebugGetSystemCpuUsage()
166 return cpuUsageOptional.value(); in FfiHidebugGetSystemCpuUsage()
/developtools/profiler/hidebug/interfaces/js/kits/napi/
H A Dnapi_hidebug.cpp579 auto cpuUsageOptional = HidebugNativeInterface::CreateInstance()->GetSystemCpuUsage(); in GetSystemCpuUsage() local
580 if (!cpuUsageOptional.has_value()) { in GetSystemCpuUsage()
586 napi_create_double(env, cpuUsageOptional.value(), &retMsg); in GetSystemCpuUsage()

Completed in 4 milliseconds