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.