|
From: Konstantin T. <an...@ya...> - 2014-06-18 10:05:35
|
29.05.2014, 21:45, "Maurice van Swaaij" <ma...@bl...>: > Valgrind doesn't track memory allocation through mmap, mremap and brk. > > You can use massif with the option --pages-as-heap=yes to track those instead of malloc etc. But this will overestimate used memory because malloc mmaps much more memory than it is really used. Better solution would be to mark such (de)allocations with VALGRIND_MALLOCLIKE_BLOCK and VALGRIND_FREELIKE_BLOCK in code [1] [1] http://valgrind.org/docs/manual/manual-core-adv.html -- Regards, Konstantin |