1

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?

Mouna Cheikhna
  • 38,870
  • 10
  • 48
  • 69
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139

3 Answers3

2

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.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
1

I think you have to use

traceview -r [applicationpath+applicationname.apk]
Mouna Cheikhna
  • 38,870
  • 10
  • 48
  • 69
Mak
  • 1,057
  • 1
  • 12
  • 30
1

try replacing javaCmd="java" in your tools/traceview with :

javaCmd="/path/tojava/bin/java" 
Mouna Cheikhna
  • 38,870
  • 10
  • 48
  • 69