Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
generate graphs from google-perftools heap profiles
Go
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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   # http://martine.github.com/ninja

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
Something went wrong with that request. Please try again.