With the Fuchsia DevTools CPU tool, you can examine the amount of CPU used by the entire device. You can also examine the amount of CPU used by an individual thread or process.
CPU cycles, like other computing resources, are finite. Checking the CPU usage of a process or device can uncover implementation errors and unexpected behaviors.
Use the CPU tool to help monitor CPU usage.
Click the CPU tab to see the device’s overall CPU usage.
The CPU usage for the device is the percentage of total available CPU cycles consumed by your device. For example, on a four core device 100% CPU means all four cores are being utilized.
The CPU tool can display the CPU usage of any process or thread on the system instantaneously.
With the CPU tool, you can do the following:
The CPU usage for a process or thread is the percentage of CPU cycles it consumes on a single core.
For example, on a device with a four core CPU, 100% CPU means only one core is being fully utilized. Fuchsia DevTools shows the total device CPU and per-process or thread CPU on the same graph. However, Fuchsia DevTools displays the per-process and thread CPU statistics at different scales.
The graph lets you examine CPU usage over a time range. For example, you can determine the average CPU used within a spike on the graph.
To select a time range in the graph, do the following:
The CPU stats box reports the average CPU used over the selected time range.
Note: Currently, the CPU stats box displays the CPU level at the right end of the time range.
Under normal operation the graph updates in real-time, moving older data to the left. The graph halts its real-time display of CPU usage when you make a selection or drag the scrollbar.
To clear the selection of the graph, do the following:
Click in the graph to clear the selection.
Drag the scrollbar to the right and release to resume the real time display.