Debian Codegraph @

startop/apps/test/README.md

raw symbols SCIP
1 This directory contains a simple Android app that is meant to help in doing
2 controlled startup performance experiments.
3
4 This app is structured as a number of activities that each are useful for a
5 different aspect of startup testing.
6
7 # Activities
8
9 ## EmptyActivity
10
11 This is the simplest possible Android activity. Starting this exercises only the
12 system parts of startup without any app-specific behavior.
13
14 adb shell am start -n com.android.startop.test/.EmptyActivity
15
16 ## LayoutInflation
17
18 This activity inflates a reasonably complex layout to see the impact of layout
19 inflation. The layout is supported by the viewcompiler, so this can be used for
20 testing precompiled layout performance.
21
22 The activity adds an `inflate#activity_main` slice to atrace around the time
23 spent in view inflation to make it easier to focus on the time spent in view
24 inflation.
25
26 adb shell am start -n com.android.startop.test/.ComplexLayoutInflationActivity
27
28 ## NonInteractiveSystemServerBenchmark
29
30 This 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
34 It takes awhile (and there's currently no automated way to make sure it's done),
35 but 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