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 generate nm.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
Python
91.0%
HTML
9.0%
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 generate nm.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
Python
91.0%
HTML
9.0%