How to measure the total memory consumption of the current process programmatically in .NET?
Refer to this SO question
Further try this
Process currentProcess = System.Diagnostics.Process.GetCurrentProcess(); long totalBytesOfMemoryUsed = currentProcess.WorkingSet64;
1.4m articles
1.4m replys
5 comments
57.0k users