diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 23:35:52 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 23:35:52 +0000 |
commit | 0c557f15b825d1036a1e48a148ff10d9cd51ab0f (patch) | |
tree | 2444d54874182125c2994f2a63bbb95731a4ceba /base/process_util.h | |
parent | 03f27a7db3f9b0ea13523c126e72d0561c235e9e (diff) | |
download | chromium_src-0c557f15b825d1036a1e48a148ff10d9cd51ab0f.zip chromium_src-0c557f15b825d1036a1e48a148ff10d9cd51ab0f.tar.gz chromium_src-0c557f15b825d1036a1e48a148ff10d9cd51ab0f.tar.bz2 |
Add memory stats for linux page cycler. On linux, we collect
the final RSS size and the total VM size.
Review URL: http://codereview.chromium.org/113217
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15814 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/base/process_util.h b/base/process_util.h index fe1b4d2..7801d4c 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -323,12 +323,16 @@ class ProcessMetrics { ~ProcessMetrics(); // Returns the current space allocated for the pagefile, in bytes (these pages - // may or may not be in memory). + // may or may not be in memory). On Linux, this returns the total virtual + // memory size. size_t GetPagefileUsage() const; // Returns the peak space allocated for the pagefile, in bytes. size_t GetPeakPagefileUsage() const; - // Returns the current working set size, in bytes. + // Returns the current working set size, in bytes. On Linux, this returns + // the resident set size. size_t GetWorkingSetSize() const; + // Returns the peak working set size, in bytes. + size_t GetPeakWorkingSetSize() const; // Returns private usage, in bytes. Private bytes is the amount // of memory currently allocated to a process that cannot be shared. // Note: returns 0 on unsupported OSes: prior to XP SP2. |