android bootchart安装使用指南

android系统开机启动分析工具bootchart如何安装使用呢

1 linux
  ubuntu 20之后的都没有集成bootchart或pybootchartgui
  可以尝试下载 git clone https://github.com/shubh-agrawal/pybootchartgui.git
  ubuntu 18之后的只需 sudo apt-get install pybootchartgui
  ubuntu 更低版本 还可以sudo apt-get install bootchart
  直接执行bootchart bootchart.tgz
2 window
  下载github上的pybootchartgui,直接搜就有
  将里面的main.py.in修改成main.py
  下载python3
  下载pycario
  执行pip install pycairo-1.19.1-cp38-cp38-win_amd64.whl
  开始解析:python pybootchartgui.py --show-all -n -f png bootchart.tgz
  
3 抓取方法:
  touch /data/bootchart/enabled
  reboot 
  cd /data/bootchart/
  tar -czf /sdcard/bootchart.tgz /data/bootchart
  adb pull /sdcard/bootchart.tgz . 
4 解决什么问题
  kenel以上的init进程启动后的进程运行时间及cpu,io分布。
  可以查看比如一些进程一端时间不消耗cpu,有可能等待其他进程
  有些进程启动多次,中间应该是crash了,
  通过源码里面的system/core/init/compare...工具还可以对比两次启动的差异,找出衰变的源头

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值