1This directory contains a simple Android app that is meant to help in doing 2controlled startup performance experiments. 3 4This app is structured as a number of activities that each are useful for a 5different aspect of startup testing. 6 7# Activities 8 9## EmptyActivity 10 11This is the simplest possible Android activity. Starting this exercises only the 12system parts of startup without any app-specific behavior. 13 14 adb shell am start -n com.android.startop.test/.EmptyActivity 15 16## LayoutInflation 17 18This activity inflates a reasonably complex layout to see the impact of layout 19inflation. The layout is supported by the viewcompiler, so this can be used for 20testing precompiled layout performance. 21 22The activity adds an `inflate#activity_main` slice to atrace around the time 23spent in view inflation to make it easier to focus on the time spent in view 24inflation. 25 26 adb shell am start -n com.android.startop.test/.ComplexLayoutInflationActivity 27 28## NonInteractiveSystemServerBenchmark 29 30This activity is for running microbenchmarks from the command line. Run as follows: 31 32 adb shell am start -W -n com.android.startop.test .NonInteractiveSystemServerBenchmarkActivity 33 34It takes awhile (and there's currently no automated way to make sure it's done), 35but when it finishes, you can get the results like this: 36 37 adb shell cat /sdcard/Android/data/com.android.startop.test/files/benchmark.csv 38