android monitor tool (4.0 bootchart)
来源:互联网 发布:设计效果图软件 编辑:程序博客网 时间:2024/05/17 23:56
有的时候需要查看开机过程中进程占用的时间及启动时序
这个时候bootchart就派上用场了,下面是记录生成bootchart的详细过程及可能会遇到的麻烦点(本人亲验成功):
0
bootchart.h
#ifndef BOOTCHART
# define BOOTCHART 1
#endif
1
touch system/core/init/bootchart.c
2
./makeMtk -t -o=TARGET_BUILD_VARIANT=eng,INIT_BOOTCHART=true mm system/core/init/
./makeMtk -t -o=TARGET_BUILD_VARIANT=eng,INIT_BOOTCHART=true n bootimage
3
echo 120 > /data/bootchart-start
echo 1 > /data/bootchart-stop (stop collect data)
4
reboot
5
sudo apt-get install ant
6
download bootchart-0.9.tar.bz2
To build the sources, install the Apache Ant package. Run 'ant' in the
bootchart directory to build the JAR package.
7
adb shell pull /data/bootchart ./data
tar -czf bootchart.tgz header proc_stat.log proc_ps.log proc_diskstats.log kernel_pacct
8
cp bootchart.jar to ./data
cd ./data
java -jar bootchart.jar ./
9
Bootchart将生成PNG格式的图片。当然,可以指定为其他格式的图片
如果有放大、查看细节等需求,则可以指定为SVG格式的。
java -jar bootchart.jar -f svg ./
10
good luck !
附上一张bootchart以证明我没有说谎:)
- android monitor tool (4.0 bootchart)
- android monitor tool (4.0 bootchart)
- android monitor tool (1.0 功能介绍)
- android monitor tool (2.0 运行环境)
- android monitor tool (3.0 battery kernel interface)
- android monitor tool (6.0 监控文件系统)
- Android Bootchart
- [Android]bootchart
- android monitor tool (5.0 怎么得到CPU利用率)
- android monitor tool (7.0 监控文件系统 native层实现)
- Build Android Bootchart
- Using Bootchart on Android
- Android bootchart使用步骤
- Android bootchart使用步骤
- Using Bootchart on Android
- Android bootchart 使用心得
- Android bootchart 工具使用
- Android——bootchart
- 新型的按键扫描程序
- linux-3.2.36内核启动3-setup_arch中的内存初始化2(arm平台 分析建立页表)
- 【eclipse】Android项目的重命名非Ant
- 结构体位制与内存对齐
- [设计模式]001-设计模式之单例模式Singleton
- android monitor tool (4.0 bootchart)
- 【LeetCode】Same Tree --- 二叉树相等
- 黑马程序员 Java基础----IO流(2)
- 内存分配方式,堆区,栈区,new/delete/malloc/free
- Raspberry Pi入门 1——启动
- WIN7下硬盘安装linux双系统教程(EasyBCD法)
- 【Leetcode】Given a binary tree, check whether it is a mirror of itself
- C++四种类型转换
- Hadoop DataNode启动之asyncBlockReport