Eric Holk 77743f31c8 Refactor system server benchmarks
This change does a better job of separating the UI code from the benchmark
running code, with the goal of enabling a non-interactive version of the
benchmarks.

Change-Id: Id7a673b9abca69cd9643a487f7b05f965e1f2614
2019-10-11 16:10:48 -07:00
..
2019-10-11 16:10:48 -07:00
2019-10-11 16:10:48 -07:00

This directory contains a simple Android app that is meant to help in doing controlled startup performance experiments.

This app is structured as a number of activities that each are useful for a different aspect of startup testing.

Activities

EmptyActivity

This is the simplest possible Android activity. Starting this exercises only the system parts of startup without any app-specific behavior.

adb shell am start -n com.android.startop.test/.EmptyActivity

LayoutInflation

This activity inflates a reasonably complex layout to see the impact of layout inflation. The layout is supported by the viewcompiler, so this can be used for testing precompiled layout performance.

The activity adds an inflate#activity_main slice to atrace around the time spent in view inflation to make it easier to focus on the time spent in view inflation.

adb shell am start -n com.android.startop.test/.ComplexLayoutInflationActivity