我是靠谱客的博主 美好洋葱,这篇文章主要介绍Android: Run systrace under windows,现在分享给大家,希望可以做个参考。

Run systrace under Windows, there is an error occurs.

C:..sdkplatform-toolssystrace>python systrace.py --set-
tags=gfx,view,wm
Traceback (most recent call last):
  File "systrace.py", line 286, in <module>
    main()
  File "systrace.py", line 60, in main
    device_sdk_version = get_device_sdk_version()
  File "systrace.py", line 44, in get_device_sdk_version
    stderr=subprocess.PIPE)
  File "C:Python27libsubprocess.py", line 710, in __init__
    errread, errwrite)
  File "C:Python27libsubprocess.py", line 958, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified


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:

复制代码
1
./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.



最后

以上就是美好洋葱最近收集整理的关于Android: Run systrace under windows的全部内容,更多相关Android:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(68)

评论列表共有 0 条评论

立即
投稿
返回
顶部