Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | 03-May-2024 | - | 882 | 586 | ||
Android.bp | D | 03-May-2024 | 1.3 KiB | 39 | 36 | |
AndroidManifest.xml | D | 03-May-2024 | 1.4 KiB | 36 | 18 | |
AndroidTest.xml | D | 03-May-2024 | 3.7 KiB | 68 | 36 | |
OWNERS | D | 03-May-2024 | 57 | 2 | 1 | |
README.md | D | 03-May-2024 | 1.1 KiB | 36 | 32 |
README.md
1## Window manager performance tests 2 3### Precondition 4To reduce the variance of the test, if `perf-setup.sh` (platform_testing/scripts/perf-setup) 5is available, it is better to use the following instructions to lock CPU and GPU frequencies. 6``` 7m perf-setup 8PERF_SETUP_PATH=/data/local/tmp/perf-setup.sh 9adb push $OUT/$PERF_SETUP_PATH $PERF_SETUP_PATH 10adb shell chmod +x $PERF_SETUP_PATH 11adb shell $PERF_SETUP_PATH 12``` 13 14### Example to run 15Use `atest` 16``` 17atest WmPerfTests:RelayoutPerfTest -- \ 18 --module-arg WmPerfTests:instrumentation-arg:kill-bg:=true 19``` 20Use `am instrument` 21``` 22adb shell am instrument -w -r -e class android.wm.RelayoutPerfTest \ 23 -e listener android.wm.WmPerfRunListener \ 24 -e kill-bg true \ 25 com.android.perftests.wm/androidx.test.runner.AndroidJUnitRunner 26``` 27* `kill-bg` is optional. 28 29Test arguments 30 - kill-bg 31 * boolean: Kill background process before running test. 32 - profiling-iterations 33 * int: Run the extra iterations with enabling method profiling. 34 - profiling-sampling 35 * int: The interval (0=trace each method, default is 10) of sample profiling in microseconds. 36