Skip to content

Most visited

Recently visited

navigation

Android Device Monitor

Android Device Monitor is a standalone tool that provides a UI for several Android app debugging and analysis tools. You can launch the application from the command line or from Android Studio.

However, most components of the Android Device Monitor are deprecated, such as the Dalvik Debug Monitor Server (DDMS), in favor of updated tools available in Android Studio 3.0 and higher. The table below helps you decide which developer tools you should use.

Android Device Monitor component: What you should use:
Dalvik Debug Monitor Server (DDMS)

This tool is deprecated. Instead, use Android Profiler in Android Studio 3.0 and higher to profile your app's CPU, memory, and network usage.

If you want to send commands to a connected device—for example, to set up port-forwarding, transfer files, or take screenshots and videos—use either the Android Debug Bridge (adb) from the command line or options provided by the Android Emulator.

Traceview

If you want to inspect existing .trace files, or ones you've captured by instrumenting your app with the Debug class, keep using Traceview.

If you want to record new method traces and inspect realtime CPU usage of your app's Java processes, use Android Studio's CPU profiler.

Systrace

If you need to inspect native system processes and address UI jank caused by dropped frames, use systrace from the command line.

Otherwise, use Android Studio's CPU profiler to profile your app's Java processes.

Tracer for OpenGL ES Keep using Tracer.
Hierarchy Viewer

If you want to inspect your app's view hierarchy at runtime, use Layout Inspector.

If you simply want to profile the rendering speed of your app's layout, keep using Hierarchy Viewer.

Pixel Perfect Keep using Pixel Perfect.

Start Android Device Monitor

You can start Android Device Monitor from either Android Studio or the command line as follows:

You can then link the tool to a connected a device by selecting the device from the Devices pane. If you have trouble viewing panes or windows, select Window > Reset Perspective from the menu bar.

Note: Each device can be attached to only one debugger process at a time. So, for example, if you are using Android Studio to debug your app on a device, you need to disconnect the Android Studio debugger from the device before you attach a debugger process from the Android Device Monitor.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)