Bootchart的使用方法(linux)
一、bootchart是什么?
bootchart是用于记录开机时进程启动时间的工具
二、Android系统如何打开bootchart?
默认情况下是没有启用的,在system/core/rootdir/init.rc中是有启动的,看如下代码
1 # Start bootcharting as soon as possible after the data partition is
2 # mounted to collect more data.
3 mkdir /data/bootchart 0755 shell shell
4 bootchart start
但是,查看了一下bootchart的源码(在system/core/init/bootchart.cpp