Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to measure the total memory consumption of the current process programmatically in .NET?

How to measure the total memory consumption of the current process programmatically in .NET?

like image 749
Jader Dias Avatar asked Feb 26 '10 13:02

Jader Dias


1 Answers

Refer to this SO question

Further try this

Process currentProcess = System.Diagnostics.Process.GetCurrentProcess(); long totalBytesOfMemoryUsed = currentProcess.WorkingSet64; 
like image 156
HotTester Avatar answered Oct 03 '22 11:10

HotTester