29.05.2014, 21:45, "Maurice van Swaaij" <maur...@blueskystudios.com>: > 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 ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users