Traceview not working

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

When I print a traceview in 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?

Are there any other ways to use traceview?

+1
source share
3 answers

You need to specify a command line parameter, the path to the trace log you created from DDMS, or using Debug.startMethodTracing() . See the documentation for more information on using Traceview.

+2
source

I think you should use

 traceview -r [applicationpath+applicationname.apk] 
+1
source

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

 javaCmd="/path/tojava/bin/java" 
+1
source

Source: https://habr.com/ru/post/1345844/


All Articles