From d632798e22600557d9bb2c84450dd110cb9d6230 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Wed, 17 Sep 2008 13:10:45 +0000 Subject: 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 --- base/sys_info.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'base/sys_info.h') 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 -- cgit v1.1