summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 13:10:45 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 13:10:45 +0000
commitd632798e22600557d9bb2c84450dd110cb9d6230 (patch)
tree14a3498d0262e8e87a684c0e97d4d62db3a90491 /base/sys_info.h
parent2a758d61d9ee5c8ae43bf5a6d974d27cc6779ef2 (diff)
downloadchromium_src-d632798e22600557d9bb2c84450dd110cb9d6230.zip
chromium_src-d632798e22600557d9bb2c84450dd110cb9d6230.tar.gz
chromium_src-d632798e22600557d9bb2c84450dd110cb9d6230.tar.bz2
Add support for querying the amount of memory on a system to sys_info.
Review URL: http://codereview.chromium.org/2927 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index 65949a0..c82b0d3 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -5,12 +5,17 @@
#ifndef BASE_SYS_INFO_H_
#define BASE_SYS_INFO_H_
+#include "base/basictypes.h"
+
namespace base {
class SysInfo {
public:
// Return the number of logical processors/cores on the current machine.
static int NumberOfProcessors();
+
+ // Return the number of bytes of physical memory on the current machine.
+ static int64 AmountOfPhysicalMemory();
};
} // namespace base