Repository navigation
Add ROM size and cycle budget report - #90
Conversation
|
@codex fix-request (review of 7297e31, base 948d19d; every CI check passed on a hand-resolved merge a6c5e0c, scripts/report.sh too, except cargo +1.85, which CI covers) F0 [blocking] CHANGELOG.md conflicts with Reply format and rules: AGENTS.md "Fix requests". |
…-report # Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md # Task.md
Available checks passed as recorded in the updated PR description: fmt, clippy with denied warnings, build, full Rust tests/snapshots/doctests, all seven example assemblies, checksummed Blargg ROMs and RGBDS-enabled lib/emulator tests, whitespace checks. Rust 1.85 is unavailable locally (no rustup/toolchain); GitHub MSRV checks are reported separately. Fresh independent review of the final head remains pending. Reviewer agents reached the account usage limit; these fixes and local checks are not being counted as a completed independent review. Merge order is recorded in the PR dependency line. Additionally, RGBDS-enabled |
Depends on #89.
Summary
Phase 3 lacked a reproducible way to see linked ROM occupancy or whether frame work fits its hardware timing budgets. This adds an on-demand report backed by RGBDS and the existing headless emulator, so measurements use the linked program and executed instruction timings.
What changed
scripts/assemble-examples.shstep in the assemble CI job; the separate RGBDS library/emulator test command does not include the report target.scripts/report.sh [bin]for one example or all seven.RGBDS_LINK_CHECK) that sums linked ROM sections and measures ten runs of the VBlank handler and main-loop work.Tasks closed
How it was verified
Final pushed head
b4bee1780a72aa518a9caff837ab9554ca627664:cargo fmt --check— passed.cargo clippy --all-targets -- -D warnings— passed.cargo build— passed.cargo test— passed (466 library tests, integration tests, snapshots and doctests).scripts/assemble-examples.shwith RGBDS 1.0.4 on PATH — passed; all seven examples.scripts/fetch-test-roms.sh /tmp/rust-boy-test-roms— pinned checksums passed; cache reused.RGBDS_LINK_CHECK=1 GB_TEST_ROMS=/tmp/rust-boy-test-roms cargo test --lib --test emulatorwith RGBDS on PATH — passed (466 library, 114 emulator tests including Blargg).git diff --check— passed.cargo +1.85 test— not run locally (rustup / 1.85 not installed; CI MSRV job checks this).RGBDS_LINK_CHECK=1 cargo test --test reportandscripts/report.sh fosdem— passed with 9 M-cycles interrupt-dispatch/vector overhead verified.Generated-asm impact
None.
Risks and follow-ups
VBlankHandler/WaitFramesymbols report those measurements as unavailable.Independent review
b4bee1780a72aa518a9caff837ab9554ca627664againstrefactor(3a1adce).7297e31are addressed:CHANGELOG.mdhighlights retained cleanly.measure_vblank_handler, covered byempty_vblank_handler_budget_includes_dispatch_and_vectorregression asserting 26 M-cycles for an empty handler.scripts/assemble-examples.shin assemble job; report test returns early withoutRGBDS_LINK_CHECK).How to review
Read
tests/report.rsfirst, especially the measured boundaries aroundVBlankHandlerand the return fromWaitFrame; then check the thinscripts/report.shwrapper and documentation.