Loading init/grab-bootchart.sh +6 −3 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ # this script is used to retrieve the bootchart log generated # by init when compiled with INIT_BOOTCHART=true. # # All options are passed to adb, for better or for worse. # # for all details, see //device/system/init/README.BOOTCHART # TMPDIR=/tmp/android-bootchart Loading @@ -15,8 +17,9 @@ TARBALL=bootchart.tgz FILES="header proc_stat.log proc_ps.log proc_diskstats.log kernel_pacct" for f in $FILES; do adb pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null adb "${@}" pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null done (cd $TMPDIR && tar -czf $TARBALL $FILES) cp -f $TMPDIR/$TARBALL ./$TARBALL echo "look at $TARBALL" bootchart ${TMPDIR}/${TARBALL} gnome-open ${TARBALL%.tgz}.png echo "Clean up ${TMPDIR}/ & ./${TARBALL%.tgz}.png when done" init/readme.txt +1 −2 Original line number Diff line number Diff line Loading @@ -313,9 +313,8 @@ retrieve them and create a bootchart.tgz file that can be used with the bootchart command-line utility: sudo apt-get install pybootchartgui ANDROID_SERIAL=<device serial number> $ANDROID_BUILD_TOP/system/core/init/grab-bootchart.sh bootchart ./bootchart.tgz gnome-open bootchart.png Debugging init Loading Loading
init/grab-bootchart.sh +6 −3 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ # this script is used to retrieve the bootchart log generated # by init when compiled with INIT_BOOTCHART=true. # # All options are passed to adb, for better or for worse. # # for all details, see //device/system/init/README.BOOTCHART # TMPDIR=/tmp/android-bootchart Loading @@ -15,8 +17,9 @@ TARBALL=bootchart.tgz FILES="header proc_stat.log proc_ps.log proc_diskstats.log kernel_pacct" for f in $FILES; do adb pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null adb "${@}" pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null done (cd $TMPDIR && tar -czf $TARBALL $FILES) cp -f $TMPDIR/$TARBALL ./$TARBALL echo "look at $TARBALL" bootchart ${TMPDIR}/${TARBALL} gnome-open ${TARBALL%.tgz}.png echo "Clean up ${TMPDIR}/ & ./${TARBALL%.tgz}.png when done"
init/readme.txt +1 −2 Original line number Diff line number Diff line Loading @@ -313,9 +313,8 @@ retrieve them and create a bootchart.tgz file that can be used with the bootchart command-line utility: sudo apt-get install pybootchartgui ANDROID_SERIAL=<device serial number> $ANDROID_BUILD_TOP/system/core/init/grab-bootchart.sh bootchart ./bootchart.tgz gnome-open bootchart.png Debugging init Loading