diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 12:03:29 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 12:03:29 +0000 |
commit | 6233deeca757293ccf93110e470e7f42520f6fd9 (patch) | |
tree | 6569818da2d620cd7eb610012803ac3348422b20 /base/process_util.h | |
parent | 0a6fc039802f84e286934bf8069f3cbf35311e14 (diff) | |
download | chromium_src-6233deeca757293ccf93110e470e7f42520f6fd9.zip chromium_src-6233deeca757293ccf93110e470e7f42520f6fd9.tar.gz chromium_src-6233deeca757293ccf93110e470e7f42520f6fd9.tar.bz2 |
Some basic memory api support that is needed for perf tests and i think the task window.
BUG=none
TEST=perf bots should have memory numbers now like linux.
Review URL: http://codereview.chromium.org/118436
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/process_util.h b/base/process_util.h index 4fe081f..81b6d18 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -332,13 +332,13 @@ class ProcessMetrics { ~ProcessMetrics(); // 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. + // may or may not be in memory). On Linux and Mac, this returns the total + // virtual memory size of the calling process. 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. On Linux, this returns - // the resident set size. + // Returns the current working set size, in bytes. On Linux & Mac, this + // returns the resident set size. size_t GetWorkingSetSize() const; // Returns the peak working set size, in bytes. size_t GetPeakWorkingSetSize() const; |