diff options
author | Sebastien Hertz <shertz@google.com> | 2014-07-09 15:59:05 +0200 |
---|---|---|
committer | Sebastien Hertz <shertz@google.com> | 2014-07-09 15:59:59 +0200 |
commit | 07aaac812c5935fc5c4023f843697fc96a42ea87 (patch) | |
tree | 79f2b9838385c37fdfa8b8f9bb6fbc8250fcd7db /test/run-test | |
parent | 13f89cb9930ea799c21559020da43c3845536da5 (diff) | |
download | art-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-x | test/run-test | 5 |
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 |