如何以编程方式在.NET中测量当前进程的总内存消耗?
最佳答案
参阅此SO question
进一步尝试这个
Process currentProcess = System.Diagnostics.Process.GetCurrentProcess();
long totalBytesOfMemoryUsed = currentProcess.WorkingSet64;
如何以编程方式在.NET中测量当前进程的总内存消耗?
最佳答案
参阅此SO question
进一步尝试这个
Process currentProcess = System.Diagnostics.Process.GetCurrentProcess();
long totalBytesOfMemoryUsed = currentProcess.WorkingSet64;