How to generate graphs from .heap files created by google HEAPPROFILER
Like the question says I created some .heap files using awesome google perftools and now I cant view them(ofc i can open them in the vim, but I want graphical representation )... I tried using the (like in the documentation)
p开发者_开发问答prof --gv name-of-my-program /my_heap_file.0100.heap
but I get
pprof: invalid option -- '-' pprof: invalid option -- 'g'
There are two tools called pprof. One comes with part of the tau package and it is installed on many machines. However it knows nothing about Google Perf Tools and it should not be used.
The other pprof tool comes with Google Perf Tools. This is the version that you should run. The documentation should be updated to make this more obvious.
The pprof
is provided by installing tau
.
Use the absolute path to (perftools)pprof
to use it, something like /usr/local/bin/pprof
精彩评论