How to use Bootchart (windows)
-
Download bootchart.jar and copy it to windows, and then make sure that windows has also installed open jdk 1.8;
Download address: https://download.csdn.net/download/Johnny2004/87807973
-
Turn on the switch to start the bootchart when the device is turned on: adb shell touch /data/bootchart/enabled
-
Create a file /data/bootchart/start on the device, whose content is the sampling time of bootchart
adb shell echo TIMEOUT > /data/bootchart/start where TIMEOUT > /data/bootchart/start where TIMEOUT>/data/bootchart−start where TIMEOUT is Expected sampling time, in seconds, for example, to sample for two minutes, execute:
adb shell echo 120 > /data/bootchart-start -
After rebooting and debugging the phone, enter the /data/bootchart directory, delete enabled first, then execute tar -zcf boochart.tgz *, then adb pull /data/bootchart/boochart.tgz
-
Finally, execute java -jar bootchart.jar ./boochart.tgz to generate the boot chart
The generated sequence diagram is in C:\Users\xxx\bootchart.png