systrace.py error : in _execute_child raise child_exception

来源:互联网 发布:手机去除马赛克软件 编辑:程序博客网 时间:2024/05/22 06:19
$ cd android-sdk/platform-tools/systrace$ python systrace.py --time=10 -o mynewtrace.html sched gfx view wm
Traceback (most recent call last):File "./systrace.py", line 212, in <module>main()File "./systrace.py", line 121, in mainstderr=subprocess.PIPE)File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__errread, errwrite)File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249, in _execute_childraise child_exceptionOSError: [Errno 2] No such file or directory

Solution:
it looks like the script assumes adb is in your path. add the platform-tools sdk dir to your path and it should work.

http://stackoverflow.com/questions/11823007/systrace-android-no-such-file-or-directory

0 0
原创粉丝点击