A command line tool to run Android Method Trace with ddmlib
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
lib
src
.gitignore
README.md
mtr.iml

README.md

MethodTraceRunner

A command line tool to run Android Method Trace
Powered by ddmlib

Usage

mtr
 -h         show help msg
 -p <arg>   package name
 -o <arg>   output file
 -t <arg>   trace time
 -v         verbose log
$ java -jar mtr.jar -p com.your.package -o output.trace -t 10
this cmd will trace app com.your.package for 10 seconds and save result at output.trace.

Download

https://github.com/likaci/MethodTraceRunner/releases

Refs

https://android.googlesource.com/platform/tools/base/+/master/ddmlib/ https://developer.android.com/studio/profile/am-methodtrace.html http://blog.csdn.net/eclipsexys/article/details/51316423