You can use CPU analysis tasks to monitor the real-time CPU usage and thread status while your app/atomic service is running. In this way, you can learn about the CPU resource consumption over a specified period and examine critical system trace points (including those of the graphics system and application service framework) to perform more targeted optimization.
The CPU template supports the following lanes: Energy, CPU Core, and Process. This section describes the CPU Core and Process lanes. For details about the Energy lane, see Energy Consumption Diagnosis: Energy.
Before analysis, create a CPU analysis task and capture related data. For details, see In-depth Capture for Problem Locating. Alternatively, click Open File in the session area and import historical data.
Drag to select the main lane to collect statistics on the CPU usage in the selected period. You can query the process statistics in multiple time slices, status statistics by thread, thread status statistics, and data statistics of all time slices.

When you hover over a time slice, the time slices of different processes are dimmed, helping you determine the association between time slices.




You can click
on the toolbar to set whether to use the lite mode. In lite mode, trace data collection is significantly reduced, focusing only on the current process, the launcher process, and the render_service process.


The medium-load and heavy-load data is aggregated every 100 ms. A running duration between 24 ms and 48 ms (inclusive) is recorded as medium load, while a running duration greater than 48 ms is recorded as high load.

The value range of Parallelism is [1, number of CPU cores]. A smaller value indicates a lower degree of parallelism.


