diff options
| author | Elliott Hughes <enh@google.com> | 2015-02-12 14:28:54 -0800 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2015-02-13 15:15:11 -0800 |
| commit | 841b263fae7463d8c57814a0134300b7a27c785c (patch) | |
| tree | cafcd56326de7033007b2b3b5d9eed7f0cc637aa /init/README.BOOTCHART | |
| parent | 265df6f50c508710f0b717d67650732baa906976 (diff) | |
| download | system_core-841b263fae7463d8c57814a0134300b7a27c785c.zip system_core-841b263fae7463d8c57814a0134300b7a27c785c.tar.gz system_core-841b263fae7463d8c57814a0134300b7a27c785c.tar.bz2 | |
Further refactoring of the bootchart code.
Change-Id: Ifed6ae8d481b605139fd27799574de4c2d0f5908
Diffstat (limited to 'init/README.BOOTCHART')
| -rw-r--r-- | init/README.BOOTCHART | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/init/README.BOOTCHART b/init/README.BOOTCHART deleted file mode 100644 index 245e452..0000000 --- a/init/README.BOOTCHART +++ /dev/null @@ -1,46 +0,0 @@ -This version of init contains code to perform "bootcharting", i.e. generating log -files that can be later processed by the tools provided by www.bootchart.org. - -On the emulator, use the new -bootchart <timeout> option to boot with bootcharting -activated for <timeout> seconds. - -Otherwise, flash your device, and start it. Then create a file on the /data partition -with a command like the following: - - adb shell 'echo $TIMEOUT > /data/bootchart/start' - -Where the value of $TIMEOUT corresponds to the wanted bootcharted period in seconds; -for example, to bootchart for 2 minutes, do: - - adb shell 'echo 120 > /data/bootchart/start' - -Reboot your device, bootcharting will begin and stop after the period you gave. -You can also stop the bootcharting at any moment by doing the following: - - adb shell 'echo 1 > /data/bootchart/stop' - -Note that /data/bootchart/stop is deleted automatically by init at the end of the -bootcharting. This is not the case of /data/bootchart/start, so don't forget to delete it -when you're done collecting data: - - adb shell rm /data/bootchart/start - -The log files are placed in /data/bootchart/. You must run the script tools/grab-bootchart.sh -which will use ADB to retrieve them and create a bootchart.tgz file that can be used with -the bootchart parser/renderer, or even uploaded directly to the form located at: - - http://www.bootchart.org/download.html - -NOTE: the bootchart.org webform doesn't seem to work at the moment, you can generate an - image on your machine by doing the following: - - 1/ download the sources from www.bootchart.org - 2/ unpack them - 3/ in the source directory, type 'ant' to build the bootchart program - 4/ type 'java -jar bootchart.jar /path/to/bootchart.tgz - -technical note: - -This implementation of bootcharting does not use the 'bootchartd' script provided by -www.bootchart.org, but a C re-implementation that is directly compiled into our init -program. |
