Get memory used by current process at specific point in time

Boris Carvajal boris2.9 at gmail.com
Thu Jan 16 09:11:33 UTC 2020


On Sunday, 12 January 2020 at 13:58:18 UTC, Per Nordlöw wrote:
> Is there a druntime/phobos function for getting the amount of 
> memory (both, stack, malloc, and GC) being used by the current 
> process?

At least for the GC I remember using GC.stats and GC.profileStats 
to get some info.

https://dlang.org/phobos/core_memory.html#.GC


More information about the Digitalmars-d-learn mailing list