pprof icon indicating copy to clipboard operation
pprof copied to clipboard

Make it possible to distinguish between samples from different shared objects

Open nolanmar511 opened this issue 8 years ago • 2 comments

The profile.proto data format does not have a specific way to note which shared object a sample is associated with.

When using pprof on perf.data files, it should be possible to determine which shared object a sample is associated with, and this should be exposed to users.

nolanmar511 avatar Dec 15 '17 22:12 nolanmar511

The concept of SharedObjects in perf.data is similar to the concept of mappings in the profile.proto.

So we want to expose ways to group by filenames.

nolanmar511 avatar Dec 15 '17 23:12 nolanmar511

Shared objects are not perf.data concept, it's basic Unix / Linux thing - http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html. Mappings in profile.proto represent how portions of shared objects / libraries are mapped into the process address space, see http://www.skyfree.org/linux/references/ELF_Format.pdf.

aalexand avatar Dec 15 '17 23:12 aalexand