Provides debugging functions. The functions of this module can be used to obtain CPU usage, memory, heap, and capture trace.
System capability: SystemCapability.HiviewDFX.HiProfiler.HiDebug
Since: 12
| Name | Description |
|---|---|
| hidebug.h | Defines the debugging functions of the HiDebug module, providing capabilities such as CPU usage monitoring, memory information query, trace capture, stack backtracking, performance sampling, memory export listening, and maintenance and debugging information recording, helping developers perform application performance analysis, resource management, and problem diagnosis. |
| hidebug_type.h | Defines the structs for the system performance analysis and debugging capabilities provided by the HiDebug module, supporting thread CPU usage statistics, system memory information collection, native memory tracking, stack backtracking analysis, and other functions. It is used in scenarios such as performance optimization, problem diagnosis, and resource monitoring, helping developers quickly locate performance bottlenecks, memory leaks, and other issues. The module design follows a unified data structure specification, provides configuration and callback types for functions such as trace capture and resource collection, and supports multi-dimensional performance data collection and analysis. |