Fox*_*chu 8 android systrace android-4.4-kitkat
我正在关注http://developer.android.com/tools/debugging/systrace.html,但无法在我的Moto X(KitKat)上运行systrace.有任何想法吗?
$ python systrace.py --time=10 -o mynewtrace.html gfx view wm
error opening /sys/kernel/debug/tracing/options/overwrite: Permission denied (13)
error opening /sys/kernel/debug/tracing/buffer_size_kb: Permission denied (13)
error opening /sys/kernel/debug/tracing/trace_clock: Permission denied (13)
error opening /sys/kernel/debug/tracing/tracing_on: Permission denied (13)
error opening /sys/kernel/debug/tracing/tracing_on: Permission denied (13)
unable to start tracing
error opening /sys/kernel/debug/tracing/options/overwrite: Permission denied (13)
error opening /sys/kernel/debug/tracing/buffer_size_kb: Permission denied (13)
error opening /sys/kernel/debug/tracing/trace_clock: Permission denied (13)
No data was captured. Output file was not written.
Run Code Online (Sandbox Code Playgroud)
某些OEM在几个Android版本中禁用了没有root权限的systrace.三星在Exynos Galaxy S4上使用android 4.3做到了这一点.没有关于为什么或如果它将被解决的说法.
您需要root设备才能访问它.
编辑:
作为对此的进一步解释 - 许多具有联发科技芯片组的设备尚未在内核选项中启用systrace.这是因为Mediatek为未选中systrace的OEM提供了一个交钥匙解决方案.许多OEM在收到预配置时不会更改此设置.
| 归档时间: |
|
| 查看次数: |
4302 次 |
| 最近记录: |