[fpc-devel] GetHeapStatus.TotalAllocated

Nikolai Zhubr n-a-zhubr at yandex.ru
Tue Feb 16 16:49:21 CET 2010

16.02.2010 14:39, Michael Schnell:
> On 02/13/2010 09:38 PM, Jonas Maebe wrote:
>> It would make the memory manager slower, and I don't think that aggregating few statistics is a good reason to do so
> Yep. But it should be possible to implement a function that on request
> (slowly) collects the list of (or at last sum of) the state of all
> existing threads.

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.


> -Michael
> _______________________________________________
> 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