bloat
bloat copied to clipboard
analyze code size via nm/objdump output
bloat
Generate webtreemap-compatible JSON summaries of binary size.
Setup
-
Check out a copy of webtreemap in a
webtreemapsubdirectory:git clone git://github.com/martine/webtreemap.git -
Build your binary with the
-gflag to get symbols. -
Run
./bloat.py --helpand generatenm.outas instructed there. -
Example command line:
./bloat.py --strip-prefix=/path/to/src syms > bloat.json
Misc other feature
Dump large symbols:
$ ./bloat.py dump | head -20