On 2020-01-12 14:58, 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? I don't think so. But if you're on macOS you can use Instruments (shipped with Xcode) and pick the Allocations template. -- /Jacob Carlborg