Using the Traceview and dmtracedump platform tools

The Android SDK includes among its various tools two that are specially intended to analyze performance problems and profiles, and potentially determine the target to apply optimizations. Android also offers us the Dalvik Debug Monitor Service (DDMS), which collates these tools all in one place. DDMS can be opened from Android Studio by navigating to Tools | Android | Device Monitor, or from the command line with the command monitor. You can use Traceview and other tools inside DDMS by using handy GUI shortcuts. Here, however, we are going to use the command-line options so that you can understand the tools behind the GUI.

These tools have an advantage over other alternatives: usually, no modification ...

Get Learning Android Application Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.