An open API service indexing awesome lists of open source software.

https://github.com/nekocode/methodtracercli

A command-line interface of Android Studio's method tracer.
https://github.com/nekocode/methodtracercli

android tool

Last synced: 3 months ago
JSON representation

A command-line interface of Android Studio's method tracer.

Awesome Lists containing this project

README

        

MethodTracerCli is a command-line interface of Android Studio's method tracer.
You can run it independently without Android Studio.
It's very useful when you want to do method tracing on a non-gui environment.
So you can use it in your test or CI scripts.

You can download the jar in [here](https://github.com/nekocode/MethodTracerCli/releases).
And then you can run the jar with the `-h` option to see the usage message:
```
usage: MethodTracer.jar [-a ] [-e ]
[-h] [-i ] [-o ] [-p ] [-t ]
A command-line interface of android stuido's method tracer
-a Path of adb
-e Serial number of connected traget device
-h,--help Show this help information
-i The sampling interval of method tracing (can ben
0, default is 10)
-o Output file name (default is "out.trace")
-t Trace application for N seconds
```

After tracing, you can use the `monitor` in the android sdk tools to open the trace file.
![](img/monitor.png)

If you want to build this project manually, you should make sure that the Android Studio has already been installed and it's version is greater than or equals to 3.0.
Other build information can be found in the [build.gradle](build.gradle).