Visualize binary size data by SymbolSort with webtreemap.
Inspired by https://github.com/evmar/bloat (for Linux and Mac).
-
Build your binary with
/Zi
get.pdb
debug symbol file. -
Download SymbolSort and run
SymbolSort -in input.pdb -out out.txt
. -
Set up Visual C++ build environment with
vcvarsall.bat
and builddump.cpp
withcl /O2 dump.cpp /link /out:dump.exe
. -
Run
dump -in out.txt -out dump.json
. -
Open
index.html
for visualization.
https://rongjiecomputer.github.io/bloat-win/v8
If you want to share the generated JSON on Internet, it is good to minify it with http://closure-compiler.appspot.com/home
Warning: do not use "Advanced" optimization mode!