c# - Process.WorkingSet64 和 Process.PeakWorkingSet64 的区别

标签 c# .net windows

我必须读取程序的内存使用情况。我认为 Process.WorkingSet64 或 Process.PeakWorkingSet64 是合适的。

问题:即使使用谷歌,我也无法弄清楚这两者之间的确切区别。有谁知道吗?

Process.WorkingSet64

Process.PeakWorkingSet64

最佳答案

区别很简单

Process.PeakWorkingSet64 为您提供自进程启动以来分配给进程的内存最大值

另一方面

Process.WorkingSet64 为您提供当前分配给进程的内存值

关于c# - Process.WorkingSet64 和 Process.PeakWorkingSet64 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16773915/

相关文章:

c# - 使用不显眼的 javascript/MVC3 和 DataAnnotations 验证电子邮件地址

c# - 将 ITestOutputHelper 与 Selenium、xUnit 和 C# 一起使用

.net - 如何在不使用 app_code 目录的情况下编写 asmx web 服务?

c# - F#函数返回值类型错误

c# - 使用.NET/Mono 唯一标识一台计算机?

linux - 网络接口(interface)名称的长度可以是多少?

windows - 限制通过net start命令运行的Windows服务使用的CPU内核数

c# - Wix:自定义操作可以走多远?

c# - 执行阅读器 : CommandText property has not been initialized when using gridView

windows - 使用批处理命令自动连接到 FTP 服务器,继续执行批处理脚本,然后在必要时运行 FTP 命令