HTTPS clone URL
Subversion checkout URL
brillo-m7-dev brillo-m7-mr-dev brillo-m7-release donut-release donut-release2 eclair-passion-release eclair-release eclair-sholes-release eclair-sholes-release2 froyo-release froyo gingerbread-mr4-release gingerbread-release gingerbread ics-factoryrom-2-release ics-mr0-release ics-mr0 ics-mr1-release ics-mr1 ics-plus-aosp idea133-weekly-release idea133 jb-dev jb-mr0-release jb-mr1-dev-plus-aosp jb-mr1-dev jb-mr1-release jb-mr1.1-dev-plus-aosp jb-mr1.1-dev jb-mr1.1-release jb-mr2-dev jb-mr2-release jb-mr2.0-release jb-mr2.0.0-release jb-release kitkat-cts-dev kitkat-cts-release kitkat-dev kitkat-mr1-release kitkat-mr1.1-release kitkat-mr2-release kitkat-mr2.1-release kitkat-mr2.2-release kitkat-release kitkat-wear l-preview lollipop-cts-release lollipop-dev lollipop-mr1-cts-release lollipop-mr1-dev lollipop-mr1-fi-release lollipop-mr1-release lollipop-mr1-wfc-release lollipop-release lollipop-wear-release marshmallow-cts-release marshmallow-dev marshmallow-dr-dev marshmallow-dr-release marshmallow-release master-soong master studio-1.1-release tools_r20 tools_r21 tools_r22 tools_r22.2
Nothing to show
Nothing to show
Fetching latest commit...
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
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. To activate it, you need to define build 'init' with the INIT_BOOTCHART environment variable defined to 'true', for example: touch system/init/init.c m INIT_BOOTCHART=true 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 use the 'bootchartd' script provided by www.bootchart.org, but a C re-implementation that is directly compiled into our init program.