美文网首页
Systrace捕获系统跟踪信息

Systrace捕获系统跟踪信息

作者: 狠狠狠努力的疯子 | 来源:发表于2019-10-31 09:53 被阅读0次

官方文档:https://developer.android.google.cn/studio/profile/systrace/command-line

使用条件:

1.从 Android Studio 下载并安装最新的 Android SDK Tools

2.安装 Python 并将其添加到工作站的执行路径中。

3.使用 USB 调试连接将搭载 Android 4.3(API 级别 18)或更高版本的设备连接到开发系统。

systrace 命令在 Android SDK Tools 工具包中提供,位于 android-sdk/platform-tools/systrace/。

命令:

1.python systrace.py [options] [categories]

例如:

$ python systrace.py -o mynewtrace.html sched freq idle am wm gfx view \binder_driver hal dalvik camera input res

2.要查看已连接设备支持的类别列表:

$ python systrace.py --list-categories

相关文章

网友评论

      本文标题:Systrace捕获系统跟踪信息

      本文链接:https://www.haomeiwen.com/subject/hhuzvctx.html