diff options
| -rwxr-xr-x | test/run-test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/run-test b/test/run-test index 71a1d70281..1ed03ea5c5 100755 --- a/test/run-test +++ b/test/run-test @@ -72,6 +72,7 @@ runtime="art" usage="no" build_only="no" suffix64="" +trace="false" while true; do if [ "x$1" = "x--host" ]; then @@ -176,7 +177,7 @@ while true; do 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 --runtime-option -Xmethod-trace-file-size:2000000" + trace="true" shift elif expr "x$1" : "x--" >/dev/null 2>&1; then echo "unknown $0 option: $1" 1>&2 @@ -188,6 +189,10 @@ while true; do done mkdir -p $tmp_dir +if [ "$trace" = "true" ]; then + run_args="${run_args} --runtime-option -Xmethod-trace --runtime-option -Xmethod-trace-file:${DEX_LOCATION}/trace.bin --runtime-option -Xmethod-trace-file-size:2000000" +fi + # Most interesting target architecture variables are Makefile variables, not environment variables. # Try to map the suffix64 flag and what we find in ${OUT}/data/art-test to an architecture name. function guess_arch_name() { |