当前位置:网站首页>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
边栏推荐
- 15 years of software architect experience summary: In the ML field, 5 pits that beginners have stepped on
- 大型连锁百货运维审计用什么软件好?有哪些功能?
- tinymce 如何实现动态国际化
- Nanoprobes金脂质偶联物的相关应用
- 使用百度EasyDL实现施工人员安全装备检测
- PMP每日一练 | 考试不迷路-8.3(包含敏捷+多选)
- The Chinese Embassy in Nigeria issued an emergency safety warning for the area near Zuma Rock in Abuja
- Insert or Merge
- 爱可可AI前沿推介(8.3)
- STL——vector
猜你喜欢
随机推荐
位级运算之计算整数位级表示奇偶性
[Microservice] Multi-level cache
js单线程及事件循环、宏任务和微任务
工具模板 | 用APOEM方法消除对用户行为的偏见
Golang dictionary map
VMware 虚拟机如何连接网络「建议收藏」
GMapping principle analysis/easy to understand
为什么手动启动GBase 8c数据库中GTM节点
北斗三号系统建成开通两周年:基础设施端核心技术已实现自主可控
15 years of software architect experience summary: In the ML field, 5 pits that beginners have stepped on
使用Typora+EasyBlogImageForTypora写博客,无图床快速上传图片
GDB调试CoreDump文件
Left index of all anagrams in leetcode/string (some permutation of s1 string is a substring of s2)
MySQL知识总结 (十二) 数据库相关概念
苹果终于认清现实,销量成为优先考虑,iPhone14将不涨价
一文详解什么是软件部署
第二讲 软件生命周期
0代码4步体验物联网设备上云
GMapping原理分析[通俗易懂]
Top 10 free proxy IP software_Domestic static IP proxy software