2

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'


NoSenseEtAl
  • 28,205
  • 28
  • 128
  • 277
  • 1
    You need google-pprof not the tau package! See this thread stackoverflow.com/a/7758044/1029144 . – gvd Dec 17 '11 at 05:33

2 Answers2

3

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.

Bruce Dawson
  • 3,284
  • 29
  • 38
  • Sometimes, e.g. in ubuntu and possibly in debian, the right perl script `pprof` from gperftools (ex google-perftools, code.google.com/p/gperftools/) is called `google-pprof`: http://manpages.ubuntu.com/manpages/intrepid/man1/google-pprof.1.html – osgx Jul 08 '14 at 18:32
-1

The pprof is provided by installing tau.

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

Alok Save
  • 202,538
  • 53
  • 430
  • 533
  • i have it in /usr/bin/pprof , but fullpath changes nothing /usr/bin/pprof: invalid option -- '-' /usr/bin/pprof: invalid option -- 'g' usage: /usr/bin/pprof [-c|-b|-m|-t|-e|-i|-v] [-r] [-s] [-n num] [-f filename] [-p] [-l] [-d] [node numbers] – NoSenseEtAl Jun 23 '11 at 17:53
  • 1
    @NoSenseEtAl: Perhaps, some other package is installing an binary with same name. – Alok Save Jun 23 '11 at 17:55
  • ah, stupid me, downloaded tar and it contained pprof inside, now everything works. Sorry for dumb question. :) – NoSenseEtAl Jun 23 '11 at 19:08
  • 1
    How is this the answer? tau is not the package you want. – gvd Nov 22 '12 at 21:41
  • 1
    The pprof tool from tau is not the tool that you should use. – Bruce Dawson Jul 07 '14 at 17:51