当前位置:网站首页>atrace和systrace的基本使用方法
atrace和systrace的基本使用方法
2022-08-03 13:58:00 【站在巨人的肩膀上,温故而知新】
1 atrace
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进程的调用流程,很有用!
2 systrace
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+鼠标滚轮,放大字体,缩小字体
3 附件
https://download.csdn.net/download/u012906122/76482104?spm=1001.2014.3001.5503
边栏推荐
- 位级运算之提取位级表示的最高位
- 1, introduction to petri net
- 用1000行代码统计西安新房价格后,我有一个惊人的发现……
- The Chinese Embassy in Nigeria issued an emergency safety warning for the area near Zuma Rock in Abuja
- 农产品企业如何进行全网营销?
- Zhang Le: The Golden Triangle of R&D Efficiency and Practice in the Field of Demand and Agile Collaboration|Live Review
- PMP每日一练 | 考试不迷路-8.3(包含敏捷+多选)
- Nanoprobes EnzMet - 酶金相相关介绍及应用
- 【web渗透】CSRF漏洞详细讲解
- VLAN experiment
猜你喜欢
随机推荐
优思学院|2022年获美质协ASQ和ILSSI奖项的《精益六西格玛的十条戒律》
GMapping原理分析[通俗易懂]
UE4 解决C盘缓存问题
飞桨开源社区季度报告来啦,你想知道的都在这里
CVPR 2022 | Predicting Skeletons from Human Meshes, True Physiological Skeletons!
552个元宇宙App,70个搞社交,哪款真能交到朋友?
c语言结构体知识总结
MySQL【存储过程与函数】
Heaps
Tao Te: Engine or baggage?
英文邮件总结
Golang sync.WaitGroup
数据科学家 Agnis Liukis :在ML领域,初学者踩过的5个坑
leetcode 448. Find All Numbers Disappeared in an Array 找到所有数组中消失的数字(简单)
半导体制造业回流美国?宏碁创始人施振荣:违反垂直分工大趋势
网络数据集-骨干网和校园网-IP流量
美国拟对华禁售128层以上NAND Flash制造设备
超大规模的产业实用语义分割数据集PSSL与预训练模型开源啦!
第二讲 软件生命周期
【二叉树】统计最高分的节点数目