summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-07-09 14:39:56 -0700
committerAndreas Gampe <agampe@google.com>2015-07-09 14:39:56 -0700
commit6f0a9c305b3e51b852fa9f188590076d6612864e (patch)
tree9f88b7876f032807f308a3060ef73f35010d9342 /tools
parenta3cd834a9e63c4c2259f0ef87d79ddf2c4dd3afb (diff)
downloadart-6f0a9c305b3e51b852fa9f188590076d6612864e.zip
art-6f0a9c305b3e51b852fa9f188590076d6612864e.tar.gz
art-6f0a9c305b3e51b852fa9f188590076d6612864e.tar.bz2
ART: Improve the symbolize script
Allow a list of files to pull. This improves turnaround time when tracking down perf hotspots. Bug: 21760614 Change-Id: I824e875053940d59eb00f9d796ef402632905c39
Diffstat (limited to 'tools')
-rwxr-xr-xtools/symbolize.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/symbolize.sh b/tools/symbolize.sh
index 7365a9b..f5686e6 100755
--- a/tools/symbolize.sh
+++ b/tools/symbolize.sh
@@ -22,6 +22,7 @@
INTERACTIVE="no"
if [ "x$1" = "x--interactive" ] ; then
INTERACTIVE="yes"
+ shift
fi
# Pull the file from the device and symbolize it.
@@ -57,4 +58,15 @@ function all() {
done
}
-all
+if [ "x$1" = "x" ] ; then
+ # No further arguments, iterate over all oat files on device.
+ all
+else
+ # Take the parameters as a list of paths on device.
+ while (($#)); do
+ DIR=$(dirname $1)
+ NAME=$(basename $1)
+ one $DIR $NAME
+ shift
+ done
+fi