问题
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?
回答1:
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.
回答2:
try replacing javaCmd="java"
in your tools/traceview
with :
javaCmd="/path/tojava/bin/java"
回答3:
I think you have to use
traceview -r [applicationpath+applicationname.apk]
来源:https://stackoverflow.com/questions/7429661/traceview-doesnt-work