pio_size_report
Analyze built firmware to identify flash and RAM usage by source file and symbol. Use the report to locate large components and reduce firmware size for microcontroller boards.
Instructions
Explain where flash and RAM go in the built firmware.elf: text/data/bss totals with percent of the board's flash and RAM, loaded sections classified as flash/ram, the biggest symbols (demangled, with file:line), and per-source-file totals. Use it to shrink firmware on purpose: drop the largest fonts/tables, remove unused features, tune build flags. Run pio_build first; filter is a regex applied to symbol names and file paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| top | No | ||
| filter | No | ||
| project_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||