summaryrefslogtreecommitdiffstats
path: root/test/run-test
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2014-07-09 15:59:05 +0200
committerSebastien Hertz <shertz@google.com>2014-07-09 15:59:59 +0200
commit07aaac812c5935fc5c4023f843697fc96a42ea87 (patch)
tree79f2b9838385c37fdfa8b8f9bb6fbc8250fcd7db /test/run-test
parent13f89cb9930ea799c21559020da43c3845536da5 (diff)
downloadart-07aaac812c5935fc5c4023f843697fc96a42ea87.tar.gz
art-07aaac812c5935fc5c4023f843697fc96a42ea87.tar.bz2
art-07aaac812c5935fc5c4023f843697fc96a42ea87.zip
Allow method tracing for run-test
Adds "--trace" option to enable method tracing. Bug: 11683397 Change-Id: I20a6b25c71067eafd848db26f13d62cfdb9a6159
Diffstat (limited to 'test/run-test')
-rwxr-xr-xtest/run-test5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/run-test b/test/run-test
index d1c5bb2360..2989f2578c 100755
--- a/test/run-test
+++ b/test/run-test
@@ -64,7 +64,6 @@ run_args="--quiet"
target_mode="yes"
dev_mode="no"
update_mode="no"
-debug_mode="no"
runtime="art"
usage="no"
build_only="no"
@@ -162,6 +161,9 @@ while true; do
run_args="${run_args} --64"
suffix64="64"
shift
+ elif [ "x$1" = "x--trace" ]; then
+ run_args="${run_args} --runtime-option -Xmethod-trace --runtime-option -Xmethod-trace-file:${DEX_LOCATION}/trace.bin"
+ shift
elif expr "x$1" : "x--" >/dev/null 2>&1; then
echo "unknown $0 option: $1" 1>&2
usage="yes"
@@ -257,6 +259,7 @@ if [ "$usage" = "yes" ]; then
echo " --output-path [path] Location where to store the build" \
"files."
echo " --64 Run the test in 64-bit mode"
+ echo " --trace Run with method tracing"
) 1>&2
exit 1
fi