Bloaty
Bloaty: a size profiler for binaries
...It parses binary formats like ELF, Mach-O, and DWARF symbol/debug data without relying solely on toolchain heuristics, letting you attribute size to files, sections, symbols, templates, and even compilation units. Reports can be produced at multiple granularities and diffed across builds to identify regressions introduced by compiler flags, dependencies, or new code paths. The tool is designed to be fast enough for iterative use in developer workflows and CI, making size budgets enforceable rather than aspirational. It also supports data sources such as symbol tables and map files, combining them into coherent, readable breakdowns. ...