You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
626 B
23 lines
626 B
#!/bin/sh
|
|
#
|
|
# This script is used to retrieve a bootchart log generated by init.
|
|
# All options are passed to adb, for better or for worse.
|
|
# See the readme in this directory for more on bootcharting.
|
|
|
|
TMPDIR=/tmp/android-bootchart
|
|
rm -rf $TMPDIR
|
|
mkdir -p $TMPDIR
|
|
|
|
LOGROOT=/data/bootchart
|
|
TARBALL=bootchart.tgz
|
|
|
|
FILES="header proc_stat.log proc_ps.log proc_diskstats.log"
|
|
|
|
for f in $FILES; do
|
|
adb "${@}" pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null
|
|
done
|
|
(cd $TMPDIR && tar -czf $TARBALL $FILES)
|
|
pybootchartgui ${TMPDIR}/${TARBALL}
|
|
xdg-open ${TARBALL%.tgz}.png
|
|
echo "Clean up ${TMPDIR}/ and ./${TARBALL%.tgz}.png when done"
|