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.
- Host: GitHub
- URL: https://github.com/nekocode/methodtracercli
- Owner: nekocode
- Created: 2017-12-23T14:38:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-24T07:08:07.000Z (over 7 years ago)
- Last Synced: 2025-03-20T17:23:26.548Z (3 months ago)
- Topics: android, tool
- Language: Java
- Homepage:
- Size: 375 KB
- Stars: 61
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
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).