Traceview doesn't work

假装没事ソ 提交于 2020-02-25 07:36:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!