feat(perf-runner): Android preflight stabilize + multi-run median 集計#99
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本 PR は 2026-06-27-android-bottleneck-investigation.md の Next action 2 (B': run-to-run variance 10× の安定化) の perf-runner 拡張です。
変更内容
tools/rosettadds-perf-runnerに 3 フラグを追加:--stabilize-device: 計測前 Android device の状態を軽量リセット (screen on wakelock + WiFi recycle + host 接続待機)--repeat <N>: 各 scenario を N 回連続 run (default 1, median 集計対象)--aggregate <median>: multi-run 時の集計方法 (default median)新規クラス:
DeviceStabilizer(Android 軽量 preflight)MetricsParser(NDJSON → measure_done metrics)RunAggregator(N runs median 集計)計測検証
実機 (Sony XIG04, Android 15) で 9 scenario × 3 runs を実施。新機能 (perf-runner 拡張) は全て期待通り動作を確認:
RepeatCount: 3が manifest.json に正しくセットAggregate: null(正常系動作)ただし measurement 自体は 既存 findings の B 問題 (Android → helper discovery 不通) により全 9 scenario で失敗 (
helper received = 0)。variance 縮小効果の検証は B 問題修正後の再計測が必要。テスト
tests/rosettadds.Tests553 件 全 PASS (回帰なし)tools/rosettadds-perf-runner0 warning / 0 errorDesign / Plan / Findings
docs/superpowers/specs/2026-06-28-android-stabilize-aggregate-design.mddocs/superpowers/plans/2026-06-28-android-stabilize-aggregate.mddocs/superpowers/specs/2026-06-28-android-stabilize-aggregate-findings.mdScope
In: 上記 3 フラグ + 3 新規クラス + 70 テスト + findings doc
Out (別 PR):
svc power stayonの権限問題対応 (Android 12+ の WRITE_SECURE_SETTINGS)