typedef struct HiDebug_ThreadCpuUsage {...} HiDebug_ThreadCpuUsage Defines the struct for the CPU usage of all threads of the current process.
When to use:
Application performance monitoring: Obtain thread CPU usage to monitor the running status and performance bottlenecks of an application.
Thread performance optimization: Analyze the CPU usage of each thread to optimize thread scheduling and resource allocation.
System debugging: Track thread CPU usage during debugging to locate performance issues.
Since: 12
Related module: HiDebug
Header file: hidebug_type.h
| Name | Description |
|---|---|
| uint32_t threadId | Thread ID. |
| double cpuUsage | Thread CPU usage, in percentage. |
| struct HiDebug_ThreadCpuUsage *next | Pointer to the CPU usage of the next thread. |