uber / nanoscope

An extremely accurate Android method tracing tool.
Apache License 2.0
1.25k stars 68 forks source link

Control trace start and end #57

Closed dodola closed 6 years ago

dodola commented 6 years ago

request a feature to get a small range trace ,like begin MainActivity.onCreate to MainActivity.onResume all method traces.

Leland-Takamine commented 6 years ago

This is possible today, though the workflow is a bit clunky:

  1. Use the Java API to start and stop tracing in code.
  2. adb pull the file off the device.
  3. Open the file in the Nanoscope Visualizer with nanoscope open <trace-file>.

Let me know if you have any suggestions to improve this workflow.

dodola commented 6 years ago

Oh Thank you. It is very useful