[Gllug] mallinfo

Jon Dye jon.dye at gmail.com
Wed Oct 31 09:33:36 UTC 2007


On 31/10/2007, t.clarke <tim at seacon.co.uk> wrote:
> I also discovered why my original approach which prompted the research was not
> working. I originally simply wanted to check that a program wasnt getting too
> big by possibly 'leaking' memory, so I periodically subtracted the 'starting'
> sbrk value from the current 'sbrk' value,  and was always getting zero, which
> seemed weird.

Could you use valgrind (http://valgrind.org/) to do this kind of profiling?

JD
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list