From 4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 21 Oct 2008 07:00:00 -0700 Subject: Initial Contribution --- init/grab-bootchart.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 init/grab-bootchart.sh (limited to 'init/grab-bootchart.sh') diff --git a/init/grab-bootchart.sh b/init/grab-bootchart.sh new file mode 100755 index 000000000..57c955688 --- /dev/null +++ b/init/grab-bootchart.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# +# this script is used to retrieve the bootchart log generated +# by init when compiled with INIT_BOOTCHART=true. +# +# for all details, see //device/system/init/README.BOOTCHART +# +TMPDIR=/tmp/android-bootchart +rm -rf $TMPDIR +mkdir -p $TMPDIR + +LOGROOT=/tmp/bootchart +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 &> /dev/null +done +(cd $TMPDIR && tar -czf $TARBALL $FILES) +cp -f $TMPDIR/$TARBALL ./$TARBALL +echo "look at $TARBALL" -- cgit v1.2.3