Un-break --perf option to the art art script.
Change-Id: I5446751982cc33f27aa6785359b3eb3ba969f93e
diff --git a/tools/art b/tools/art
index d5d546b..2408f9f 100644
--- a/tools/art
+++ b/tools/art
@@ -76,10 +76,6 @@
LIBDIR=$(find_libdir)
LD_LIBRARY_PATH=$ANDROID_ROOT/$LIBDIR
-if [ z"$PERF" != z ]; then
- invoke_with="perf record -o $ANDROID_DATA/perf.data -e cycles:u $invoke_with"
-fi
-
DELETE_ANDROID_DATA=false
# If ANDROID_DATA is the system ANDROID_DATA or is not set, use our own,
# and ensure we delete it at the end.
@@ -89,6 +85,10 @@
DELETE_ANDROID_DATA=true
fi
+if [ z"$PERF" != z ]; then
+ invoke_with="perf record -o $ANDROID_DATA/perf.data -e cycles:u $invoke_with"
+fi
+
ANDROID_DATA=$ANDROID_DATA \
ANDROID_ROOT=$ANDROID_ROOT \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH \