ssett / gperftools

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

Callgrind output does not handle inlined functions (patch provided) #674

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. generate a cpu profile which contains some inlined functions
2. converted it to callgrind format and open it in kcachegrind

What is the expected output? What do you see instead?
 the inlined functions are not visible in kcachegrind while they are present in e.g. the pdf generated by pprof.

What version of the product are you using? On what operating system?
gperftools 2.4 on archlinux

Please provide any additional information below.
the inlined part of the stack is provided addr2line but is ignored by pprof 
ExtractCall function.

While the attached patch is really short, it probably requires some cleaning 
because those are my verry first lines of perl...

I did not change the output of PrintStacksForText because I have no idea what 
it is used for but the same changes can probably be applied there.

Original issue reported on code.google.com by jonathan...@gmail.com on 13 Feb 2015 at 7:31

Attachments:

GoogleCodeExporter commented 9 years ago
applied. Thanks a lot.

Original comment by alkondratenko on 14 Feb 2015 at 2:20