尝试在android设备上运行systrace,但结果html显示错误

时间:2018-10-31 06:30:22

标签: android android-studio-3.0 systrace

无法选择主时钟域,因为找不到从“ SYSTRACE”到“ LINUX_FTRACE_GLOBAL”的路径。

3 个答案:

答案 0 :(得分:0)

在systrace中可能未正确使用参数。正确的命令在这里,请尝试。

python ./systrace.py -t 5 -o ./trace.html gfx input view webview wm am sm audio video camera hal app res dalvik rs bionic power sched irq freq idle disk mmc load sync workq memreclaim regulators

答案 1 :(得分:0)

使用弹射器项目的systrace,而不是在Android SDK中为我工作。

$ git clone https://github.com/catapult-project/catapult.git
$ ./catapult/systrace/bin/systrace

有关更多信息:https://www.youtube.com/watch?v=9AeXMVUUk3I&t=270

答案 2 :(得分:-1)

enter image description here

打开chrome,输入“ chrome:// tracing”,然后单击“加载”按钮以加载您的跟踪html文件。