Sgenmi / gperftools

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

[feature request] Symbols from unmapped libraries aren't reported in profiles #540

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am talking about the situation when shared library is loaded, has allocated 
some memory that hasn't been freed, and then library is unloaded.

Subsequent profiles don't show symbols from such libraries since section 
MAPPED_LIBRARIES in profile is taken at the time profile is saved.

Of course, it is possible that the newly allocated (mmapped) memory would 
overlap with the previous blocks and it would be impossible to distinguish 
between the two. But in situations when such overlap doesn't occur, perftools 
can preserve the mapping information and save it in a new section, for example 
named MAPPED_LIBRARIES_PAST. And if pprof utility would aggregate such entries, 
it would correctly report symbols for all such libraries.

Original issue reported on code.google.com by yuriv...@gmail.com on 10 Jun 2013 at 7:45