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 generatea.out.map
as instructed there. -
Example command line:
./bloat.py syms --map-output ~/src/llvm-svn//tools/clang/cf.map > bloat.json
Dump large symbols:
./bloat.py dump | head -20