赞
踩
adb shell进入设备:atrace --list_categories
- gfx - Graphics
- input - Input
- view - View System
- webview - WebView
- wm - Window Manager
- am - Activity Manager
- sm - Sync Manager
- audio - Audio
- video - Video
- camera - Camera
- hal - Hardware Modules
- res - Resource Loading
- dalvik - Dalvik VM
- rs - RenderScript
- bionic - Bionic C Library
- power - Power Management
- pm - Package Manager
- ss - System Server
- database - Database
- network - Network
- adb - ADB
- vibrator - Vibrator
- aidl - AIDL calls
- pdx - PDX services
- sched - CPU Scheduling
- irq - IRQ Events
- i2c - I2C Events
- freq - CPU Frequency
- idle - CPU Idle
- disk - Disk I/O
- mmc - eMMC commands
- load - CPU Load
- sync - Synchronization
- workq - Kernel Workqueues
- memreclaim - Kernel Memory Reclaim
- regulators - Voltage and Current Regulators
- binder_driver - Binder Kernel driver
- binder_lock - Binder global lock trace
- pagecache - Page cache
https://www.cnblogs.com/liuliu-word/p/9963017.html
https://www.cnblogs.com/pyjetson/p/14946007.html
adb shell "atrace camera -b 20480 -t 5" > atrace
atrace抓取camera调用流程,缓存20480KB,抓取5s。
看了下,是抓cameraserver进程以及camerahalserver进程的调用流程,很有用!
systrace:Android的trace数据分析工具,将atrace采集上来的数据,以图形化的方式展现出来。
https://blog.csdn.net/chaihuasong/article/details/109764573
python systrace.py -h
python systrace.py --from-file atrace -o systrace.html
手动下载android sdk,使用里面的systrace.py等相关文件。见3 附件。
https://blog.csdn.net/qq_42391248/article/details/101781994
https://www.cnblogs.com/wpgraceii/p/10649331.html
经验证,手动下载的android sdk里systrace工具可用!
python systrace.py --from-file atrace -o systrace.html
看systrace常用快捷键:
w 扩展
s 压缩
m 选中当前session区间;ctrl+选中多个,再m,可选中多个区间看span
鼠标点击拖动,左移,右移
ctrl+鼠标滚轮,放大字体,缩小字体
https://download.csdn.net/download/u012906122/76482104?spm=1001.2014.3001.5503
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。