Hi,
I have a windows app and I would like to get memory usage of this app when it's running. Is there a way to do this?
best Regards.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 7, 2012, 5:18 AM
int memKB = (int)System.Diagnostics.Process.GetCurrentProcess().WorkingSet64 / 1024;
See also the Process class documentation for further details:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx
Sam HobbsPosted Mar 7, 2012, 8:19 AM
RaysefoPosted Mar 7, 2012, 6:41 AM