Here's the error message
D:\Programming\Tools\ADT_bundle\sdk\platform-tools\systrace>python systrace.py
Traceback (most recent call last):
File "systrace.py", line 315, in <module>
main()
File "systrace.py", line 64, in main
os.execv(legacy_script, sys.argv)
OSError: [Errno 2] No such file or directory
I look into systrace.py, it seems that the legacy_script "systrace-legacy.py" is missing on the file system. I have read several related posts on stackoverflow, and I've already put directory containing adb in the %PATH%. The problem still exists. I'm writting to ask if any way to solve this problem.
I think is some issue in AOSP You can check this file there: https://android.googlesource.com/platform/external/chromium-trace/+/664f21bcaf14044e5e9b09cb7beb8724d18fb851
you can download from AOSP repository:
copy this file to sdk and everything should work
This was fixed in SDK tools release 22.0.5... sort of.
The
systrace-legacy.py
script was added to theplatform-tools
directory rather than thetools
directory, because the script is (gradually) being moved there. So if you continue to follow the old instructions, you will still have the same problem. If you run the script from theplatform-tools/systrace
directory instead, it should now work.You can also run it from the Eclipse ADT plugin.