Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

generate graphs from google-perftools heap profiles

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 build.ninja
Octocat-spinner-32 hp.go
Octocat-spinner-32 linux_mangle.go
Octocat-spinner-32 linux_mangle_test.go
Octocat-spinner-32 mangle.go
Octocat-spinner-32 page.html
Octocat-spinner-32 parse.go
Octocat-spinner-32 syms.go
Octocat-spinner-32 util.go
Octocat-spinner-32 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.