summaryrefslogtreecommitdiff
path: root/tools/metrics.py
AgeCommit message (Collapse)Author
2026-06-18ci(metrics): collapse Average Code Size Metrics table when no basehathach
When no base metrics are available to compare against, the PR comment falls back to the combined "TinyUSB Average Code Size Metrics" report (build.yml copies metrics.md to metrics_compare.md). That posted the full per-example size table inline, cluttering the comment. Wrap the table in a <details><summary>Size table</summary> block so the heading stays visible but the detail is collapsed by default, matching the Size Difference Report's collapsible sections. Co-Authored-By: Claude Fable 5 <[email protected]>
2026-06-13ci(metrics): collapse <1% size changes in Size Difference Reporthathach
Wrap the "Changes <1% in size" section in a <details> block like the "No changes" section, so the report comment only expands changes >1%. Co-Authored-By: Claude Fable 5 <[email protected]>
2026-06-08ci: demote Average Code Size Metrics title to h2hathach
metrics.md (write_combine_markdown) is also used as the PR size comment when there is no base-metrics baseline; use h2 for its title too so the sticky comment heading is consistent (and not oversized) in that fallback case. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-08ci: demote sticky-comment report headings to h2; rename HIL reporthathach
The Size Difference Report and HIL comments rendered their titles at h1, which is oversized inside a PR comment. Use h2 for both titles (with subsections demoted to h3 to keep the hierarchy), and rename the HIL comment from "HIL test results" to "Hardware-in-the-loop (HIL) Test Report" for consistency. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-04-01reduce code size, use state to replace active + pendinghathach
2025-12-13upload metrics.json and metrics compare to release page (#3409)Ha Thach
* upload metrics.json and metrics compare to release page * Adjust workflow comment handling for forks
2025-12-10update metrics to support bloaty csvhathach
2025-12-09update metrics to support bloatyhathach
2025-12-06fix metrics.py compare with verbose json. add print compare summaryhathach
2025-12-05hide unchange tablehathach
2025-12-05also render unchange table (#3390)Ha Thach
* also render unchange table * run metrics with circleci (full all boards build)
2025-12-05Run CI build with fixed set of boards (#3389)Ha Thach
* run cmake ci build on github with a fixed set of board to keep the size stable * Size Difference Report contain major >1% and minor <1& table
2025-12-04fine tune ci to build more with circleci (#3386)Ha Thach
* fine tune ci to build more with circleci * skip make for arm-iar, esp-idf * skip make + clang for circleci since llvm-objcopy got killed due to memory issue.
2025-12-03Apply suggestion from @CopilotHa Thach
Co-authored-by: Copilot <[email protected]>
2025-12-03upload metrics.json and aggregate code metrics, post metrics commenthathach
fine tune ci matrix run
2025-12-02adding metrics for computing average compiled sizehathach
2025-12-02adding metrics for computing average compiled sizehathach