C:\Users\user\Downloads>python %ANDROID_HOME%/platform-tools/systrace/systrace.p
y --time=10 -o %userprofile%/trace.html gfx view res
Starting tracing (10 seconds)
Tracing completed. Collecting output...
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Android\sdk/platform-tools/systrace/systrace
.py", line 49, in
sys.exit(run_systrace.main())
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\run_systrace.py", line 196, in main
main_impl(sys.argv)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\run_systrace.py", line 191, in main_impl
controller.StopTracing()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\systrace_runner.py", line 48, in StopTracing
self._tracing_controller.StopTracing()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_controller.py", line 183, in StopTracing
self._IssueClockSyncMarker()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_controller.py", line 239, in _IssueClockSyncMarker
agent.RecordClockSyncMarker(sync_id, ControllerAgentClockSync)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_agents\atrace_agent.py", line 229, in RecordClockSync
Marker
shell.RunCommand(cmd, close=True)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 213, in R
unCommand
return (result[:-1], int(result[-1]))
ValueError: invalid literal for int() with base 10: ''
Windows 8
Also there was also an import error on pywin. I resolved it with
pip install pywin32
pip was a problem too. It was not working,
So I solved that problem by setting path C:\Python27\Scripts into Environment Variables
C:\Users\user\Downloads>python %ANDROID_HOME%/platform-tools/systrace/systrace.p y --time=10 -o %userprofile%/trace.html gfx view res Starting tracing (10 seconds) Tracing completed. Collecting output... Traceback (most recent call last): File "C:\Users\user\AppData\Local\Android\sdk/platform-tools/systrace/systrace .py", line 49, in
sys.exit(run_systrace.main())
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\run_systrace.py", line 196, in main
main_impl(sys.argv)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\run_systrace.py", line 191, in main_impl
controller.StopTracing()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\systrace_runner.py", line 48, in StopTracing
self._tracing_controller.StopTracing()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_controller.py", line 183, in StopTracing
self._IssueClockSyncMarker()
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_controller.py", line 239, in _IssueClockSyncMarker
agent.RecordClockSyncMarker(sync_id, ControllerAgentClockSync)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace\tracing_agents\atrace_agent.py", line 229, in RecordClockSync
Marker
shell.RunCommand(cmd, close=True)
File "C:\Users\user\AppData\Local\Android\sdk\platform-tools\systrace\catapult
\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 213, in R
unCommand
return (result[:-1], int(result[-1]))
ValueError: invalid literal for int() with base 10: ''
Windows 8 Also there was also an import error on pywin. I resolved it with
pip install pywin32
pip was a problem too. It was not working, So I solved that problem by setting path C:\Python27\Scripts into Environment Variables