Memory profile

Maxim Kizub max at
Tue Jan 26 08:19:35 PST 1999


I wish to make a simple memory profiling.
I have redefined interface to GC to send
function name of memory allocator.
I keep count of allocated memory by each
source, but I need to substitute
freed memory. So, I need to put a pointer
to allocator in each piece of allocated
memory, find out allocator at gcFree (?)
and decrease the total counter for
this allocator...

The question is - in which structure
I should put this pointer?

I tryed gc_unit, but it does not work...

Where should I put it???

PS I can't debug my compiler, it takes
64Mb memory again! It's impossible
to work...

More information about the kaffe mailing list