Add comment about meaning of Working Set and Commit Charge.
This commit is contained in:
parent
06409d68f5
commit
e73394ac98
|
@ -291,6 +291,8 @@ Result<MemStat> mem_stat() {
|
||||||
return Status::Error("Call to GetProcessMemoryInfo failed");
|
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;
|
MemStat res;
|
||||||
res.resident_size_ = counters.WorkingSetSize;
|
res.resident_size_ = counters.WorkingSetSize;
|
||||||
res.resident_size_peak_ = counters.PeakWorkingSetSize;
|
res.resident_size_peak_ = counters.PeakWorkingSetSize;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user