Search code examples
c++google-perftools

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)

pprof --gv name-of-my-program /my_heap_file.0100.heap

 but I get 

pprof: invalid option -- '-' pprof: invalid option -- 'g'



Solution

  • The pprof is provided by installing tau.

    Use the absolute path to (perftools)pprof to use it, something like /usr/local/bin/pprof