hidebug.h
Overview
Defines the functions for debugging.
Library: libohhidebug.so
System capability: SystemCapability.HiviewDFX.HiProfiler.HiDebug
File to include: <hidebug/hidebug.h>
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 () | Obtains the size of the GPU memory. |