Repository navigation
docs(bloat): record matched 3.10.3/3.10.6 no-Serial rp2040 Blink baselines - #4987
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Matched build measurements agents/docs/binary-size-analysis.md |
Adds flash and RAM measurements for three RP2040 builds. Notes Serial/SerialUSB and TinyUSB CDC linkage, the 3.10.6 gPioRxCaptureBuffers allocation, and master’s 1 KB fl::detail registry. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Other
Possibly related issues
#4760— The scorecard provides the RP2040 three-version measurements requested by the issue, but does not cover all of its acceptance requirements.#4770— The scorecard performs the requested RP2040 comparison; the issue also requests further investigation and validation.
Possibly related PRs
- FastLED/FastLED#4975 — Moves per-issue scorecards out of the shared analysis document, while this PR adds a scorecard to that document.
- FastLED/FastLED#4981 — Records the RP2040 master scorecard that this PR extends with release measurements and RAM findings.
Merge Risk: 
Minimal · up to bb147
-
The scorecard adds internally consistent release comparisons and explicitly notes core Serial linkage. No concrete merge-blocking defect was established.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Out of Scope Changes check
-
Explanation
The diff changes one file: agents/docs/binary-size-analysis.md (+18/-2). The change adds the matched 3.10.3, 3.10.6 and master rp2040 Blink measurements, the compatibility edits, and the Serial/TinyUSB linkage note. It also removes the outdated statement that release no-Serial numbers were unavailable. These changes relate directly to
#4770's measurement and publication scope. No code, test, budget or build-system file changed. No unrelated change was found.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Full details: Linked Issues check
-
Explanation
Directly linked issue
#4770has coding requirements that this PR does not address. Met in part: agents/docs/binary-size-analysis.md now records matched 3.10.3, 3.10.6 and master rp2040 no-Serial figures (image flash, attributed RAM, physical RAM) and states that the Serial/TinyUSB CDC linkage remains in all three builds. The row deltas are arithmetically consistent (103212-78620=24592; 8624-7049=1575; 9844-8344=1500). The ratchet item needs no change: tests/data/rp2040_bloat_budget.json already holds image_flash 103212 and total_ram 8624 for master, and the PR does not raise any ceiling. Unmet: (1) the issue asks for investigation of controller, settings, vtable and global-state costs. The PR only names gPioRxCaptureBuffers (38416 B) and a 1 KB fl::detail registry; it gives no source-level cost analysis. (2) The issue asks for an audit of FL_WARN to FL_LOG_* categories and fl::printf logging. No such audit appears in the PR. (3) The issue asks for symbol and section deltas. The PR gives totals and two named symbols only. The parent#4760publication and the child closure are administrative and were not assessed. The optimization branch is conditional. The PR claims no optimization, and it provides no evidence that optimization is or is not warranted. Build logs, preserved ELFs and maps are not in the repository, so the build claims could not be independently verified; this is noted, not counted as a failure. The PR also closes#4770while these items remain open.Resolution
Either (a) add to this PR a source-referenced investigation of the controller, settings, vtable and global-state costs for the three builds; an audit of FL_WARN to FL_LOG_* categories and fl::printf logging; and symbol and section deltas for 3.10.3 versus master, then re-assess; or (b) change the PR so it does not close
#4770and states that it covers only the baseline measurement and its documentation.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Closes #4770
This fills in the 3.10.3 and 3.10.6 rows that #4981 left open.
Method: each release's
src/andlibrary.jsoncome fromgit archiveat the pinned SHAs (3.10.320667c3a64, 3.10.6ebf8c2823c), with the library source unchanged. Each one goes into a copy of master's generated rp2040 fbuild project: rpipico, Arduino-Pico 5.7.0, the sameplatformio.iniflags, and the same Serial-freeexamples/Blinkandmain.cpp. Each build ranfbuild build --release, thenfbuild symbolsandarm-none-eabi-size -Aon the ELF.Compatibility edits, the same for both releases:
#define PIN_DATA 3, which is whatFL_PIN_CLOCKLESS_1resolves to on rp2040 at master.delay(0)in place offl::delay(0)inmain.cpp, becausefl::delaydoes not exist in 3.10.3.The master row reproduces #4981's numbers exactly, which cross-checks the method. 3.10.6's RAM is dominated by a 38416 B
gPioRxCaptureBuffers. All three builds link Serial/TinyUSB CDC through the Arduino-Pico core.Docs only;
bash lintpasses.Summary by CodeRabbit