Let's put Heisenberg aside for a brief moment.
How would I go about to, from within my own process, monitor how much memory this process is using?
(I might have under-specified the question on purpose, dreaming of creative answers...)
Let's put Heisenberg aside for a brief moment.
How would I go about to, from within my own process, monitor how much memory this process is using?
(I might have under-specified the question on purpose, dreaming of creative answers...)
WorkingSetSize
in PROCESS_MEMORY_COUNTERS_EX
seems to be what you want.
Quassnoi is correct - but it also might be worth checking our this question:
How to determine CPU and memory consumption from inside a process which includes code examples