Can I know how many bytes were allocated by malloc in my process?

2010-08-30 Thread Yuri

google-perftools malloc library has such feature.
But does FreeBSD system allocator have it?

Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can I know how many bytes were allocated by malloc in my process?

2010-08-30 Thread Ivan Voras

On 08/30/10 11:59, Yuri wrote:

google-perftools malloc library has such feature.
But does FreeBSD system allocator have it?


Maybe getrusage(2) can help you, though it also counts non-malloc() 
allocations.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org