Generate webtreemap-compatible JSON summaries of binary size.
-
Check out a copy of webtreemap in a
webtreemap
subdirectory:git clone git://github.com/martine/webtreemap.git
-
Build your binary with the
-g
flag to get symbols. -
Run
./bloat.py --help
and generatenm.out
as instructed there. -
Example command line:
./bloat.py --strip-prefix=/path/to/src syms > bloat.json
Dump large symbols:
$ ./bloat.py dump | head -20