Get memory used by current process at specific point in time

Jacob Carlborg doob at me.com
Mon Jan 13 20:08:19 UTC 2020


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


More information about the Digitalmars-d-learn mailing list