Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须阅读我的程序的内存使用情况。我认为 Process.WorkingSet64 或 Process.PeakWorkingSet64 是正确的。
问题:即使使用谷歌,我也无法弄清楚这两者之间的确切区别。有谁知道吗?
Process.WorkingSet64
Process.PeakWorkingSet64
区别很简单
Process.PeakWorkingSet64为您提供自启动以来分配给进程的最大内存值
另一方面
Process.WorkingSet64为您提供分配给进程的当前内存值