使用Windows 7的果冻豆4.1模拟器在亚行的错误运行systrace工具使用Windows 7

2019-06-14 12:47发布

我怎样才能运行systrace ,以显示其HTML输出? 看着谷歌I / O 2012的谈话后, “黄油或更糟的是”我有麻烦systrace使用运行果冻豆4.1模拟器在Windows 7上工作。

我做了以下内容:

  1. 安装了Python 2.7,并添加了安装文件夹到我的PATH
  2. 然以下内容: C:\android-sdk\platform-tools\systrace>python systrace.py (与旧版SDK: C:\android-sdk\tools\systrace>python systrace.py

但我得到在cmd中出现以下错误:

Traceback (most recent call last):
  File "systrace.py", line 212, in <module>
    main()
  File "systrace.py", line 124, in main
    ready = select.select([adb.stdout, adb.stderr], [], [adb.stdout, adb.stderr])
select.error: (10093, 'Either the application has not called WSAStartup, or WSAStartup failed')

注意:

  • 我已经在模拟器中启用的跟踪: Settings > Developer Options > Enable traces
  • 我也曾尝试与Python 3.2

Answer 1:

该systrace python脚本使用select()系统调用,并且不工作在Windows上。 在最新的预览的Android SDK工具(ADT21 RC9)包括从监控工具中收集系统跟踪支持。

启动监视器为:

./tools/monitor &

单击设备上,并在设备面板的右上方,你应该有一个工具栏itemn,允许你收集系统跟踪。



Answer 2:

我也遇到了这个问题。 看来,systrace.py尝试使用select.select()与作为记录文件描述符这里 ,不支持Windows。

我结束了运行在Linux虚拟机的工具。



Answer 3:

如果你正在使用Eclipse进行开发,那么你可以使用内置的Systrace公用事业以及概述@ http://developer.android.com/tools/help/systrace.html 。 它的最简单的方法,我发现收集的痕迹。



文章来源: Error running systrace tool in ADB using a Jelly Bean 4.1 emulator on Windows 7