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. Jonas_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel