摘要:
需要记录一个进程的Memory(Private Working Set)的最大值。通过Process[] processes = System.Diagnostics.Process.GetProcesses();获得的进程中,没有Private Working Set这个数据,只有Working Set。通过查询相关的资料发现,Woking Set = Private Woking Set + Shareable Working Set - Shared Woking Set。直接获取Private Working Set,在C#中是不容易的。凡是总会有个解决的办法,既然任务管理器已经算出. 阅读全文