The Android Profiler provides far deeper inspection than its predecessor, the Android Monitor, and allows detailed inspection of thread activity, UI events, and individual method performance. The CPU profiler also allows us to record method traces along with some sophisticated inspection tools to help us make our programs more efficient.
The CPU advanced profiling features can be seen by clicking anywhere in the CPU timeline. This will then display the thread activity timeline in the lower portion of the display.
Observing our app's behavior live like this can be very revealing, but, to best see what is going on, we need to record a period of activity. This way, we can inspect individual threads.
The following short exercise ...