Skip to content

Commit 4261a91

Browse files
committed
test(release): add android performance evidence helper
1 parent 56d24d5 commit 4261a91

5 files changed

Lines changed: 720 additions & 0 deletions

docs/release/native-performance-benchmark.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ npm run release:qa:capture -- \
8989

9090
Use `--dry-run` to print the `adb` or `xcrun` commands, and use `--no-launch` if Instruments, Android Studio Profiler, or a screen recording is already focused on the target scenario. A screenshot alone is not enough for a performance row; attach timing and memory evidence with `npm run release:qa:record -- --matrix performance --row <row-id> --status pass --evidence <artifact>`.
9191

92+
For Android release-emulator samples, the helper below opens the matrix row, captures launch timing, `dumpsys gfxinfo`, before/after `dumpsys meminfo`, and a screenshot into one markdown artifact:
93+
94+
```sh
95+
npm run release:performance:android -- \
96+
--row android-svg-standard-line-scrub \
97+
--output docs/release/artifacts/android-svg-standard-line-scrub-performance.md
98+
```
99+
100+
Use the generated record command with `--status partial` unless the row-specific criteria were reviewed on an accepted release target. These samples are useful for trend evidence, but they do not replace full physical-device or accepted simulator/emulator performance sign-off.
101+
92102
## Metrics To Capture
93103

94104
For every run, capture:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"release:qa:checklists": "node scripts/generate-native-qa-checklists.mjs",
8888
"release:qa:checklists:check": "node scripts/generate-native-qa-checklists.mjs --check",
8989
"release:qa:capture": "node scripts/capture-native-qa-screenshot.mjs",
90+
"release:performance:android": "node scripts/capture-android-performance-evidence.mjs",
9091
"release:qa:record": "node scripts/record-native-qa-evidence.mjs",
9192
"release:owner:record": "node scripts/record-owner-gate-decision.mjs",
9293
"release:publish:status": "node scripts/check-npm-publish-state.mjs",

0 commit comments

Comments
 (0)