androidandroid-traceview

Traceview doesn't work


My Android SDK is installed here D:\android-sdk-windows\tools I set all environment variables to tools and platform-tools.

When I type traceview to cmd, it reports.

C:\Users\HIEUGIOI>D:\android-sdk-windows\tools\traceview.bat
Usage: java com.android.traceview.MainWindow [-r] trace
  -r   regression only

How to fix ?

Is there other ways to use traceview?


Solution

  • You need to supply a command-line parameter, the path to the trace log you generated from DDMS or by using Debug.startMethodTracing(). See the documentation for more about using Traceview.