ddio / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

pprof --raw does not support lines #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pprof --text --lines bin profile > profile.text
2. pprof --raw --lines bin profile > profile.raw
3. pprof --text profile.raw > profile.raw.text

On does contain lines, one doesn't.
pprof --text --lines profile.raw is disabled.

What is the expected output? What do you see instead?

profile.raw.lines does not contain line information.

What version of the product are you using? On what operating system?

1.5

Please provide any additional information below.

The use case was: I would like to process a profile into a text and a
callgrind without doing the time intensive symbol lookup twice. 
Using --interactive would have been another way, but --interactive does not
support callgrind. I will submit a patch for this soon.

Original issue reported on code.google.com by weidenri...@gmx.de on 26 Feb 2010 at 1:29

GoogleCodeExporter commented 9 years ago
Yes, that makes sense that the raw profile doesn't save the line information: 
it looks 
like it only saves the nm output, not the addr2line output (which could be a 
lot more 
verbose!)

It would be reasonable to fix that, but also reasonable to just change 
--interactive.  
I'll await your patch. :-)

Original comment by csilv...@gmail.com on 26 Feb 2010 at 6:28

GoogleCodeExporter commented 9 years ago
Cool -- we've got interactive callgrind support in svn-root, and it will be 
part of the next release.

Original comment by csilv...@gmail.com on 7 Jun 2010 at 10:51

GoogleCodeExporter commented 9 years ago
This is in perftools 1.6, just released.

Original comment by csilv...@gmail.com on 5 Aug 2010 at 8:49