compos_bench: Rename tests to fit AVF terminology
ComposBenchmarkApp measures compile time in host/guest. Rename the
functions and metrics to use that terminolgy instead of android/vm.
Test: atest ComposBenchmarkApp
Change-Id: I8418450b65bdccefdea729cf02c8600179cf32ff
diff --git a/compos/benchmark/src/java/com/android/compos/benchmark/ComposBenchmark.java b/compos/benchmark/src/java/com/android/compos/benchmark/ComposBenchmark.java
index 5352c2b..bc60648 100644
--- a/compos/benchmark/src/java/com/android/compos/benchmark/ComposBenchmark.java
+++ b/compos/benchmark/src/java/com/android/compos/benchmark/ComposBenchmark.java
@@ -118,8 +118,7 @@
}
@Test
- public void testCompilationInVM()
- throws InterruptedException, IOException {
+ public void testGuestCompileTime() throws InterruptedException, IOException {
final String command = "/apex/com.android.compos/bin/composd_cmd test-compile";
@@ -137,7 +136,7 @@
compileTime[round] = (compileEndTime - compileStartTime) / NANOS_IN_SEC;
}
- reportMetric("compliation_in_vm_elapse", "second", compileTime);
+ reportMetric("guest_compile_time", "s", compileTime);
}
private Timestamp getLatestDex2oatSuccessTime()
@@ -167,7 +166,7 @@
}
@Test
- public void testCompilationInAndroid()
+ public void testHostCompileTime()
throws InterruptedException, IOException, ParseException {
final String command = "/apex/com.android.art/bin/odrefresh --force-compile";
@@ -188,7 +187,7 @@
compileTime[round] = (compileEndTime - compileStartTime) / NANOS_IN_SEC;
}
- reportMetric("compliation_in_android_elapse", "second", compileTime);
+ reportMetric("host_compile_time", "s", compileTime);
}
}