android_packages_modules_Vi.../tests/benchmark_hostside
Sebastian Ene 6291981008 Measure app startup impact after VM teardown
Add a host side test as part of MicrodroidTestCase which starts a
Microdroid VM that reserves 80% of the device's memory reported from
/proc/meminfo (MemFree - field) and touches all the allocated guest
memory with a tmpfs filesystem and successive copies from /dev/zero.
This step is necessary to create host stage2 fragmentation and we
measure a cold app startup time delta before and after we tear-down
the VM.

The following metrics will be reported during atest
AVFHostTestCase#testAppStartupTime:

app_startup/com.android.settings/total_time/before_vm
app_startup/com.android.settings/wait_time/before_vm
app_startup/com.android.settings/total_time/during_vm
app_startup/com.android.settings/wait_time/during_vm
app_startup/com.android.settings/total_time/after_vm
app_startup/com.android.settings/wait_time/after_vm

Bug: 236621823
Test: Verified localy using atest
Change-Id: Iede9d6f0507c8d7e56b3e32324441ff11e54fa1e
2022-10-13 13:49:14 +00:00
..
java/android/avf/test Measure app startup impact after VM teardown 2022-10-13 13:49:14 +00:00
Android.bp Add MetricsProcessor to calculate metrics stats 2022-09-02 11:04:49 +00:00
AndroidTest.xml Fix issues after submit aosp/2188239 2022-08-24 20:53:47 +08:00