generate graphs from google-perftools heap profiles
Go HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.markdown
build.ninja
hp.go
linux_mangle.go
linux_mangle_test.go
mangle.go
page.html
parse.go
syms.go
util.go
web.go

README.markdown

hp generates graphs from google-perftools heap profiles.

pprof, part of google-perftools, does the same thing but it is very slow for large binaries (primarily due to addr2line being slow).

This reimplementation has much fewer features but is also much faster. For more discussion, see my blog post.

To build:

ninja   # https://ninja-build.org/

or put the directory into your GOROOT and go build.

To use:

export GOMAXPROCS=8  # number of CPUs, for multiple threads
./hp /path/to/binary /path/to/profile