Get memory used by current process at specific point in time
Chris Katko
ckatko at gmail.com
Wed Jan 15 18:45:26 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?
Valgrind will tell you the exact usage (except no delineation for
GC) per here:
https://stackoverflow.com/questions/131303/how-to-measure-actual-memory-usage-of-an-application-or-process
Valgrind is an overall extremely useful tool for Linux devs.
Still, some internal instrumentation would be nice. But I'm not
aware of any.
More information about the Digitalmars-d-learn
mailing list