[fpc-devel] GetHeapStatus.TotalAllocated

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Feb 13 21:38:09 CET 2010

On 13 Feb 2010, at 21:21, Nikolai Zhubr wrote:

> 13.02.2010 22:51, Jonas Maebe:
> [trim]
>> Not without implementing a custom memory manager that does this or using some OS function to obtain this information.
> So even some extra InterlockedExchangeAdd would be too expensive?

It would make the memory manager slower, and I don't think that aggregating few statistics is a good reason to do so (especially since very few programs actually use that data). If you want that data, you can always install a very simple memory manager that simply calls through to the original one, but which keeps track of global statistics.


More information about the fpc-devel mailing list