CPU profiling
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access