bloaty

Analyze binary size and identify what's taking up space.

brewmacoslinux
Try with needOr install directly
Source

About

Size profiler for binaries

Commands

bloaty

Examples

see how much space each symbol takes in a binary$ bloaty /path/to/binary
compare binary sizes between two different builds$ bloaty /path/to/binary1 -- /path/to/binary2
show which source files contribute most to binary size$ bloaty -d sourcefile /path/to/binary
break down binary size by data sections and code sections$ bloaty -d section /path/to/binary
export detailed size analysis as CSV for spreadsheet$ bloaty -d sourcefile -c csv /path/to/binary