How to interpret CPU usage through the monitor of Android developer options?

2

Android has in its developer tools the option to display CPU usage. Would you like to know how to interpret them? Or, some other app that does the same type of service for analyzing the device's processing.

    
asked by anonymous 29.01.2014 / 14:17

3 answers

2

In the developer options there is the option "Show CPU usage", which will display some statistics in the upper right corner of the screen. On the first line there is the average load system, with three values representing the last 1, 5 and 15 minutes . The value is calculated as the number of times the system would need to be larger to account for the message multiplied by the number of CPU cores. That is, if your device has 4 cores and this value shows 5 , you would need to have 5 cores to continue without any process having to wait. Timing helps to get a feel for whether usage is increasing or decreasing.

Below is a list of active processes (those that are not sleeping or waiting for I / O).

Under each process and under load values are three bars that indicate CPU usage in each system / global process. The green part is the use in userspace (the application is running its own code), the red one at kernel > (some operation has been delegated to the system and the process is awaiting response) and blue the kernel wait for readings or writes (similar to the second case, but here the system can not return immediately and is not actually processing, just waiting).

    
29.01.2014 / 15:23
1

The colored bars are the time spent by each process with user space (green), kernel (red) and input / output (blue). The bar at the top is the total expense.

The three numbers in the upper right corner are the average load - how many processes there were on average on the machine running or waiting for resource. They respectively represent this average for the last 1 minute , the last 5 minutes and the last 15 minutes . That is, if these numbers are a growing order (2.5 / 5.0 / 7.5) it means that the CPU has been unoccupied in the last minutes.

    
29.01.2014 / 14:42
0

Another good option to measure CPU usage (among others) is to use the command:

adb shell top -m 10
    
29.01.2014 / 14:51