From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- tools/memory/collect_b2g_uss_data.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tools/memory/collect_b2g_uss_data.sh (limited to 'tools/memory') diff --git a/tools/memory/collect_b2g_uss_data.sh b/tools/memory/collect_b2g_uss_data.sh new file mode 100644 index 000000000..15b911b8f --- /dev/null +++ b/tools/memory/collect_b2g_uss_data.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ $# -ne 2 ] +then + echo "Usage: `basename $0` " + 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 + -- cgit v1.2.3