Issue
i want to do this:-
$> cd android-sdk/tools/systrace
$> python systrace.py --set-tags gfx,view,wm
$> adb shell stop
$> adb shell start
$> python systrace.py --disk --time=10 -o mynewtrace.html
i run this command:-
python systrace.py --set-tags gfx,view,wm
and error comes :-
set-tags gfx,view,wm
File "systrace.py", line 91
except subprocess.CalledProcessError, e:
^
SyntaxError: invalid syntax
i dont have much idea of python script, Please Help.
Reference Link : http://developer.android.com/tools/help/systrace.html#tags
Solution
That script was written for python 2. You should install python 2.x, not python 3.x.
Android docs should have mentioned it by now, really.
Answered By - Pavel Anossov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.