Skip to content

Most visited

Recently visited

navigation

dmtracedump

dmtracedump is a tool that generates graphical call-stack diagrams from trace log files and is an alternative to using Traceview. The tool uses the Graphviz Dot utility to create the graphical output, so you need to install Graphviz before running dmtracedump. If you haven't yet generated trace logs and saved them from your connected device to your local machine, go to Generate Trace Logs by Instrumenting Your App.

The dmtracedump tool generates the call stack data as a tree diagram, where each node represents a method call. It shows call flow (from parent node to child nodes) using arrows. The diagram below shows a sample output of dmtracedump.

The dmtracedump tool is provided in the Android SDK Tools package and is located in android-sdk/platform-tools/.

Syntax

The usage for dmtracedump is:

dmtracedump [-ho] [-s sortable] [-d trace-base-name] [-g outfile] trace-base-name

The tool then loads trace log data from trace-base-name.data and trace-base-name.key.

Global options

Global options Description
-h Turn on HTML output
-o Dump the trace file instead of profiling

Commands and command options

Commands and options Description
-d trace-base-name Diff with this trace name
-g outfile Generate output to outfile
-s sortable URL base to the location of the sortable javascript file
-t percent Minimum threshold for including child nodes in the graph (child's inclusive time as a percentage of parent inclusive time). If this option is not used, the default threshold is 20%.

Output

Figure 1. Screenshot of dmtracedump

For each node in the graph, dmtracedump shows the following information:

ref callname (inc-ms, exc-ms,numcalls)
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)