The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # this script is used to retrieve the bootchart log generated |
| 4 | # by init when compiled with INIT_BOOTCHART=true. |
| 5 | # |
| 6 | # for all details, see //device/system/init/README.BOOTCHART |
| 7 | # |
| 8 | TMPDIR=/tmp/android-bootchart |
| 9 | rm -rf $TMPDIR |
| 10 | mkdir -p $TMPDIR |
| 11 | |
The Android Open Source Project | 35237d1 | 2008-12-17 18:08:08 -0800 | [diff] [blame] | 12 | LOGROOT=/data/bootchart |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 13 | TARBALL=bootchart.tgz |
| 14 | |
| 15 | FILES="header proc_stat.log proc_ps.log proc_diskstats.log kernel_pacct" |
| 16 | |
| 17 | for f in $FILES; do |
The Android Open Source Project | 35237d1 | 2008-12-17 18:08:08 -0800 | [diff] [blame] | 18 | adb pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null |
The Android Open Source Project | 4f6e8d7 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 19 | done |
| 20 | (cd $TMPDIR && tar -czf $TARBALL $FILES) |
| 21 | cp -f $TMPDIR/$TARBALL ./$TARBALL |
| 22 | echo "look at $TARBALL" |