| Index: base/process/process_metrics_linux.cc
|
| diff --git a/base/process/process_metrics_linux.cc b/base/process/process_metrics_linux.cc
|
| index 1dde0d957fdb7902b24f92a090cbffd1ea7e7744..7f2897e857e27aa0eb8e4ba4652829c09ee4caec 100644
|
| --- a/base/process/process_metrics_linux.cc
|
| +++ b/base/process/process_metrics_linux.cc
|
| @@ -289,6 +289,12 @@ bool ProcessMetrics::GetIOCounters(IoCounters* io_counters) const {
|
| return true;
|
| }
|
|
|
| +#if defined(OS_LINUX) || defined(OS_ANDROID)
|
| +uint64_t ProcessMetrics::GetVmSwapBytes() const {
|
| + return ReadProcStatusAndGetFieldAsSizeT(process_, "VmSwap") * 1024;
|
| +}
|
| +#endif // defined(OS_LINUX) || defined(OS_ANDROID)
|
| +
|
| #if defined(OS_LINUX) || defined(OS_AIX)
|
| int ProcessMetrics::GetOpenFdCount() const {
|
| // Use /proc/<pid>/fd to count the number of entries there.
|
|
|