[fpc-devel] GetHeapStatus.TotalAllocated

Nikolai Zhubr n-a-zhubr at yandex.ru
Tue Feb 16 18:17:08 CET 2010

16.02.2010 18:59, Jonas Maebe:
> That would require separately maintaining a list of the memory managers
> of all threads, which afaik does not exist currently.
>> Exactly! That's what I'd be happy with. I'll call it once per second
>> so a bit of slowdown wouldn't matter much. I think creating a custom
>> "wrapper" heap manager just to be able to get total mem usage is a bit
>> overkill, though maybe I'll try that method too.
> I think it is the only proper way.

Ok. Would it be sufficient to only hook Getmem and Freemem?

 From a brief look it seems other members (such as ReAllocMem) do not 
modify the heap directly, so they need not be hooked I guess.


> Jonas
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel

More information about the fpc-devel mailing list