Repository navigation
Commit 7f335a9
committed
feat(macrobenchmark): Measure SentryAndroid.init as its own metric
SentryAndroid.init wraps itself in an android.os.Trace section (#5901), and
macrobenchmark sets atrace_apps=["*"] on API 29+, so the section reaches the
perfetto trace on the api-35 device we run. TraceSectionMetric turns it into a
reported metric.
This is the metric worth watching: timeToInitialDisplay measures the whole cold
start, so an SDK-init change has to be tens of milliseconds to clear the noise,
while this isolates init itself.1 parent 0549454 commit 7f335a9
1 file changed
Lines changed: 13 additions & 1 deletion
File tree
- sentry-android-integration-tests/sentry-uitest-android-macrobenchmark/src/main/java/io/sentry/uitest/android/macrobenchmark
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| |||
0 commit comments