|
From: Nicholas N. <nj...@cs...> - 2006-08-14 23:24:17
|
On Mon, 14 Aug 2006, Michael Bertone wrote: > When Memcheck reports 4,559,543 bytes allocated below, is this just the > sum of all allocations, or is it the memory footprint? (i.e. if I allocate > like this: > > malloc A=5MB > malloc B=5MB > free B > malloc C=5MB > free C > free A > > does Memcheck report 15MB (sum), or 10MB (footprint)? Sum. That's why with 178,987 allocs and the same number of frees you have a non-zero number of bytes. > If not footprint, is there an option to report footprint? No. The heap-profiler Massif might be of interest to you, though. Nick |