tools/memory/collect_b2g_uss_data.sh
author Jason Orendorff <jorendorff@mozilla.com>
Tue, 04 Aug 2015 18:16:08 -0500
changeset 281923 d60f375bf2eb1b7ec519174df45ec56bf725a56f
parent 186857 9ab12f79f735b6addd20478a7d84a5add4802f6a
permissions -rw-r--r--
Bug 1189744 - Fix crash after GetOwnPropertyDescriptor failed to populate all fields of desc. r=jandem, a=rkothari.

#!/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