Android systrace not working

I am using Systrace to analyze the performance of an application.

I have tried the following command,

python systrace.py --time=10 -o mynewtrace.html sched gfx view wm  

      

But getting the following error,

E:\sdk\android-sdk\platform-tools\systrace>python systrace.py --time=10 -o mynew
trace.html sched gfx view wm
Traceback (most recent call last):
  File "systrace.py", line 286, in <module>
    main()
  File "systrace.py", line 60, in main
    device_sdk_version = get_device_sdk_version()
  File "systrace.py", line 44, in get_device_sdk_version
    stderr=subprocess.PIPE)
  File "E:\sdk\android-sdk\platform-tools\systrace\lib\subprocess.py", line 710,
 in __init__
    errread, errwrite)
  File "E:\sdk\android-sdk\platform-tools\systrace\lib\subprocess.py", line 958,
 in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified    

      

I am using Kitkat on a Moto e device with python 2.7 .

+4


source to share


2 answers


I solved this (or very similar) problem by adding Android SDK tools to PATH. Don't forget to include the following variables in your PATH variable:

/path/to/sdk/tools
/path/to/sdk/platform-tools

      



Also, there are many similar threads for this already on stackoverflow.

+1


source


Try to update the SDK version for the platform, it worked for me.



0


source







All Articles