system/core/init/README.BOOTCHART
First, You need to rebuild the init.c:
$source build/envsetup.sh
$touch system/init/init.c
$m INIT_BOOTCHART=true
You need to create a file /data/bootchart-start in target, the content is the duration in second. Reboot the system, the init will start to log the data. After the duration you set, you can use the tools system/core/init/grab-bootchart.sh to get the data out. Then further use the command to generate the bootchart.png, take Ubuntu 8.04 for example:
$ java -jar /usr/share/bootchart/bootchart.jar bootchart.tgz

[20110217]
To get png:
$ bootchart bootchart.tgz
No comments:
Post a Comment