66183a8596
Item 5 of the queue: .github/workflows/benchmark.yml measures on an API 35 emulator (reactivecircus/android-emulator-runner, google_apis, x86_64, SwiftShader), on demand and every Monday. Not on pull requests: a run is minutes of measurement behind twenty of booting an emulator, and the gate is meant to answer in one or two. It installs both APKs and instruments directly instead of using connectedBenchmarkAndroidTest, because that task installs the app itself - which undoes the compile reset that makes the measurement a never-run baseline. tools/benchmark-report.py turns the JSON into two tables, keeping frameCount (a length) apart from frameDurationCpuMs and frameOverrunMs (speeds), and --require-frame-duration fails the job when the second table would be empty: the metric is the reason the job exists. Driving the workflow's own script against the phone first paid for itself three times. It found that cmd package compile --reset needs adbd as root - a user build refuses it with SecurityException, so the workflow now does adb root first (google_apis allows it) instead of silently measuring a compiled app. It produced the second run of the 20 000-file open (16 frames median, 32 max) and the first numbers for scroll, search and cold start at that size: search costs 319 frames, which is now the biggest number in the file. And it showed the phone reporting frameDurationCpuMs and frameOverrunMs after all, so PERFORMANCE.md's 'this phone reports counts only' was a property of those earlier runs, not of the handset - corrected, with the numbers.
42 lines
1001 B
Plaintext
42 lines
1001 B
Plaintext
# Android / Gradle
|
|
*.iml
|
|
.gradle/
|
|
.kotlin/
|
|
/local.properties
|
|
/.idea/
|
|
.DS_Store
|
|
build/
|
|
/captures
|
|
.externalNativeBuild
|
|
.cxx
|
|
|
|
# Build outputs
|
|
*.apk
|
|
*.aab
|
|
*.ap_
|
|
*.dex
|
|
|
|
# Signing material — never commit keys!
|
|
*.keystore
|
|
*.jks
|
|
keystore.properties
|
|
!debug.keystore
|
|
|
|
# Generated data — regenerated on demand, never committed
|
|
fixtures/
|
|
store-assets/raw-screenshots/
|
|
demo-files/
|
|
|
|
# Note that the *finished* store assets are not ignored: the icon, the feature graphic and
|
|
# `store-assets/screenshots/` are committed beside the code that produces them.
|
|
# Written by :app:generateReleaseBaselineProfile; the profile itself is committed at
|
|
# app/src/main/baseline-prof.txt.
|
|
app/src/release/generated/
|
|
|
|
# Written by a benchmark run, locally or by .github/workflows/benchmark.yml: the pulled JSON and traces,
|
|
# the instrumentation log and the table built from them. They describe one device at one moment; the
|
|
# numbers that matter are copied into docs/PERFORMANCE.md.
|
|
benchmark-results/
|
|
instrument.log
|
|
summary.md
|