1.
使用
Eclipse/Android Studio/Device Monitor
抓取
2.使用命令行工具
SDK命令行工具(platform-tools 33.0.3版本已移除)
cd android-sdk/platform-tools/systrace
python systrace.py -–time=5 -o mysystrace.html sched freq gfx input view webview wm am dalvik Idle power
Perfetto 命令行工具
从Android P开始