commit | becbc3ea1cc4ee9e0dceea54d91aeff791b72c7f | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Mon Jul 18 20:57:43 2022 +0100 |
committer | David Brazdil <dbrazdil@google.com> | Tue Jul 19 22:34:53 2022 +0100 |
tree | 1f7ed9fadd57f6d59e163b9b54ac28d711b6cabd | |
parent | 148d20e521d3cc91e2099ea7579bd3cdee0c9354 [diff] |
microdroid_bench: Measure min RAM with DebugMode.NONE We should measure minimum RAM usage in production mode. This reduces the reported value by ~4MB. Test: atest MicrodroidBenchmarks Change-Id: Id62012355090f3b2d650161966dc1b56d3076974
diff --git a/tests/benchmark/src/java/com/android/microdroid/benchmark/MicrodroidBenchmarks.java b/tests/benchmark/src/java/com/android/microdroid/benchmark/MicrodroidBenchmarks.java index 9edde75..625b638 100644 --- a/tests/benchmark/src/java/com/android/microdroid/benchmark/MicrodroidBenchmarks.java +++ b/tests/benchmark/src/java/com/android/microdroid/benchmark/MicrodroidBenchmarks.java
@@ -92,7 +92,7 @@ VirtualMachineConfig.Builder builder = mInner.newVmConfigBuilder("assets/vm_config.json"); VirtualMachineConfig normalConfig = - builder.debugLevel(DebugLevel.FULL).memoryMib(mem).build(); + builder.debugLevel(DebugLevel.NONE).memoryMib(mem).build(); mInner.forceCreateNewVirtualMachine("test_vm_minimum_memory", normalConfig); if (tryBootVm(TAG, "test_vm_minimum_memory").payloadStarted) return true;