Chromium Code Reviews| Index: base/process/process_metrics.h |
| diff --git a/base/process/process_metrics.h b/base/process/process_metrics.h |
| index 327483a42e7ea1f426f407a2bfc9cddfad92a0f2..74b0635e0908ed0a6822e2f94471d5e74ca54a99 100644 |
| --- a/base/process/process_metrics.h |
| +++ b/base/process/process_metrics.h |
| @@ -110,6 +110,10 @@ class BASE_EXPORT ProcessMetrics { |
| PortProvider* port_provider); |
| #endif // !defined(OS_MACOSX) || defined(OS_IOS) |
| + // Creates a ProcessMetrics for the current process. |
|
Lei Zhang
2015/11/09 19:24:51
Maybe mention this is just a cross-platform conven
fdoray
2015/11/10 19:30:27
Done.
|
| + // The caller owns the returned object. |
| + static ProcessMetrics* CreateCurrentProcessMetrics(); |
| + |
| // Returns the current space allocated for the pagefile, in bytes (these pages |
| // may or may not be in memory). On Linux, this returns the total virtual |
| // memory size. |