Chromium Code Reviews| Index: base/process/process_metrics.h |
| diff --git a/base/process/process_metrics.h b/base/process/process_metrics.h |
| index 33cb64e24430f4bacf29d7a1ea8d3f873476f6d4..2f7e397f48b853925ee419e9b658fc85434ac1c6 100644 |
| --- a/base/process/process_metrics.h |
| +++ b/base/process/process_metrics.h |
| @@ -154,10 +154,13 @@ class BASE_EXPORT ProcessMetrics { |
| // system call. |
| bool GetCommittedAndWorkingSetKBytes(CommittedKBytes* usage, |
| WorkingSetKBytes* ws_usage) const; |
| - // Returns private, shared, and total resident bytes. |
| + // Returns private, shared, and total resident bytes. |wired_bytes| refers to |
| + // bytes that must stay resident. |wired_bytes| only counts bytes wired by |
| + // this task, not bytes wired by the kernel. |
| bool GetMemoryBytes(size_t* private_bytes, |
| size_t* shared_bytes, |
| - size_t* resident_bytes) const; |
| + size_t* resident_bytes, |
| + size_t* wired_bytes) const; |
|
Mark Mentovai
2017/03/28 20:56:11
I agree with Primiano, “wired” is a very Apple-spe
erikchen
2017/03/30 00:03:14
Done.
|
| #endif |
| // Returns the CPU usage in percent since the last time this method or |