|
From: Nicholas N. <nj...@cs...> - 2008-05-28 07:56:50
|
On Wed, 28 May 2008, Andrei Soare wrote: > I am a GSoC student doing performance work for GNOME and I make use of > Valgrind's massif a lot in my work. > > I want to ask you about the possibility of determining the lifetime of > allocations during a program's execution. What I want to do is determine > those allocations that have short lifetime and try to replace them with > something else, perhaps static buffers, the main goal being to reduce the > memory fragmentation in GNOME. > >> From what I noticed, Massif doesn't say anything about deallocations (free / > delete), maybe I'm wrong ? > > Please let me know what I could do. Massif tracks deallocations, but you're right that it doesn't really say anything about them, or about allocation lifetimes. You could definitely track object lifetimes with a Valgrind tool, and Massif might be a good place to start because it has a lot of allocation-tracking infrastructure, but I expect you'd need to make substantial modifications to it. Nick |