tools/memory/collect_b2g_uss_data.sh
author Masayuki Nakano <masayuki@d-toybox.com>
Sun, 25 May 2014 11:08:58 +0900
changeset 205166 944b88892f77c0a7a5b6c058625b70e602f7d39e
parent 187882 9ab12f79f735b6addd20478a7d84a5add4802f6a
permissions -rw-r--r--
Bug 865649 part.1 Implement KeyboardEvent.code r=smaug

#!/bin/sh

if [ $# -ne 2 ]
then
    echo "Usage: `basename $0` <app title> <output_file.csv>"
    exit 1
fi

while true
do
    sample=`adb shell b2g-procrank | grep "^${1}" | awk '{ print $6 }' | sed 's/.$//'`
    echo "$sample"
    echo "$sample" >> "$2"
    sleep 1
done