summaryrefslogtreecommitdiff
path: root/core/tests/benchmarks
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2016-09-29 15:19:58 -0700
committerIgor Murashkin <iam@google.com>2016-10-03 11:08:42 -0700
commit4f66cb3f534eafff335ec803caff0572d08e8aa5 (patch)
tree6e884d6466b0a4a56e1f2640a0eb61293bc7e98e /core/tests/benchmarks
parent5706a8f5353218a60d3cf104a03e79fae301c27d (diff)
app_process: Forward -cp/-classpath to ART.
* No new functionality was added, this was already possible via -Djava.class.path=classpath * However, this makes it a bit more compatible with other tools that use -cp to invoke the main class. * Also update the benchmarks README for correct up-to-date vogar instructions. Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/os/ParcelBenchmark.java Bug: 31807538 Change-Id: Idb04600fed3dd955437ccac832617dcfd1b52b63
Diffstat (limited to 'core/tests/benchmarks')
-rw-r--r--core/tests/benchmarks/README19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/tests/benchmarks/README b/core/tests/benchmarks/README
index 0a41bcce3ca2..e4d2dce1dde6 100644
--- a/core/tests/benchmarks/README
+++ b/core/tests/benchmarks/README
@@ -5,4 +5,21 @@ run on a remote device using Vogar:
http://code.google.com/p/caliper/
http://code.google.com/p/vogar/
-$ vogar --benchmark path/to/Benchmark.java
+-------------------------
+
+Quick Command Line Reference:
+
+# Build vogar and dependencies.
+$> mmma -j32 external/vogar
+
+# First make sure art has permissions to dalvik-cache, otherwise it will run slower with interpreter.
+$> adb root
+
+# Run vogar in benchmark mode, telling it to use app_process (not dalvikvm which is default)
+# Otherwise you will likely crash with UnsatisfiedLinkError despite having correct JNI code.
+
+$> vogar --mode app_process --benchmark path/to/Benchmark.java
+
+# Sometimes your benchmarks might time out, if so increase the timeout:
+# (--timeout goes to vogar, and --time-limit goes to caliper)
+$> vogar --timeout 1000 --mode app_process --benchmark path/to/Benchmark -- --time-limit 9999s