summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
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