10 The use of the tool Bootchart (windows)

How to use Bootchart (windows)

  1. 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

  2. Turn on the switch to start the bootchart when the device is turned on: adb shell touch /data/bootchart/enabled

  3. 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

  4. 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

  5. Finally, execute java -jar bootchart.jar ./boochart.tgz to generate the boot chart

The generated sequence diagram is in C:\Users\xxx\bootchart.png
insert image description here

Guess you like

Origin blog.csdn.net/Johnny2004/article/details/130805889