|
From: Michael B. <mic...@ca...> - 2006-08-14 21:03:52
|
Hi, 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)? If not footprint, is there an option to report footprint? Thanks in advance, Mike ==25290== Memcheck, a memory error detector. ==25290== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. ==25290== Using LibVEX rev 1606, a library for dynamic binary translation. ==25290== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. ==25290== Using valgrind-3.2.0-Debian, a dynamic binary instrumentation framework. ==25290== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al. ==25290== For more details, rerun with: -v ==25290== ==25290== ==25290== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==25290== malloc/free: in use at exit: 0 bytes in 0 blocks. ==25290== malloc/free: 178,987 allocs, 178,987 frees, 4,559,543 bytes allocated. ==25290== For counts of detected errors, rerun with: -v ==25290== All heap blocks were freed -- no leaks are possible. |