Error running systrace tool in ADB using a Jelly Bean 4.1 emulator on Windows 7

最后都变了- 提交于 2019-11-27 08:22:35

The systrace python script uses the select() system call, and that doesn't work on Windows. The latest preview (ADT21 rc9) of the Android SDK tools include support for collecting system trace from within the monitor tool.

Launch monitor as:

./tools/monitor &

Click on a device, and at the top right of the device panel, you should have an toolbar itemn that allows you to collect system trace.

I also ran into this issue. It appears that systrace.py attempts to use select.select() with file descriptors which, as documented here, is not supported on Windows.

I ended up running the tool from a Linux VM.

If you are using eclipse for your development then you can use the built in Systrace utility as well as outlined @ http://developer.android.com/tools/help/systrace.html . Its the easiest way I found for collecting traces.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!