harmony 鸿蒙hidebug.h

  • 2025-06-12
  • 浏览 (4)

hidebug.h

Overview

Defines the functions for debugging.

Library: libohhidebug.so

System capability: SystemCapability.HiviewDFX.HiProfiler.HiDebug

File to include:

Since: 12

Related module: HiDebug

Summary

Function

Name Description
double OH_HiDebug_GetSystemCpuUsage () Obtains the CPU usage of the system.
double OH_HiDebug_GetAppCpuUsage () Obtains the CPU usage of an application.
HiDebug_ThreadCpuUsagePtr OH_HiDebug_GetAppThreadCpuUsage () Obtains the CPU usage of all threads of an application.
void OH_HiDebug_FreeThreadCpuUsage (HiDebug_ThreadCpuUsagePtr *threadCpuUsage) Releases the thread data struct.
void OH_HiDebug_GetSystemMemInfo (HiDebug_SystemMemInfo *systemMemInfo) Obtains system memory information.
void OH_HiDebug_GetAppNativeMemInfo (HiDebug_NativeMemInfo *nativeMemInfo) Obtains the memory information of an application.
void OH_HiDebug_GetAppMemoryLimit (HiDebug_MemoryLimit *memoryLimit) Obtains the memory limit of an application.
HiDebug_ErrorCode OH_HiDebug_StartAppTraceCapture (HiDebug_TraceFlag flag, uint64_t tags, uint32_t limitSize, char *fileName, uint32_t length) Starts tracing of an application.
HiDebug_ErrorCode OH_HiDebug_StopAppTraceCapture () Stops application tracing.
HiDebug_ErrorCode OH_HiDebug_GetGraphicsMemory (uint32_t *value) Obtains the size of the GPU memory.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Performance Analysis Kit

harmony 鸿蒙Performance Analysis Kit

harmony 鸿蒙HiAppEvent

harmony 鸿蒙HiAppEvent_AppEventGroup

harmony 鸿蒙HiAppEvent_AppEventInfo

harmony 鸿蒙HiCollie

harmony 鸿蒙HiCollie_DetectionParam

harmony 鸿蒙HiCollie_SetTimerParam

harmony 鸿蒙HiDebug

harmony 鸿蒙HiDebug_MemoryLimit

0  赞