collect_b2g_uss_data.sh 274 B

1234567891011121314151617
  1. #!/bin/sh
  2. if [ $# -ne 2 ]
  3. then
  4. echo "Usage: `basename $0` <app title> <output_file.csv>"
  5. exit 1
  6. fi
  7. while true
  8. do
  9. sample=`adb shell b2g-procrank | grep "^${1}" | awk '{ print $6 }' | sed 's/.$//'`
  10. echo "$sample"
  11. echo "$sample" >> "$2"
  12. sleep 1
  13. done