Add comment about meaning of Working Set and Commit Charge.

This commit is contained in:
levlam 2021-06-06 22:53:41 +03:00
parent 06409d68f5
commit e73394ac98

View File

@ -291,6 +291,8 @@ Result<MemStat> mem_stat() {
return Status::Error("Call to GetProcessMemoryInfo failed");
}
// Working set = all non-virtual memory in RAM, including memory-mapped files
// PrivateUsage = Commit charge = all non-virtual memory in RAM and swap file, but not in memory-mapped files
MemStat res;
res.resident_size_ = counters.WorkingSetSize;
res.resident_size_peak_ = counters.PeakWorkingSetSize;