OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_SYS_INFO_H_ | 5 #ifndef BASE_SYS_INFO_H_ |
6 #define BASE_SYS_INFO_H_ | 6 #define BASE_SYS_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/time.h" | |
14 #include "build/build_config.h" | 13 #include "build/build_config.h" |
15 | 14 |
16 namespace base { | 15 namespace base { |
17 | 16 |
18 class BASE_EXPORT SysInfo { | 17 class BASE_EXPORT SysInfo { |
19 public: | 18 public: |
20 // Return the number of logical processors/cores on the current machine. | 19 // Return the number of logical processors/cores on the current machine. |
21 static int NumberOfProcessors(); | 20 static int NumberOfProcessors(); |
22 | 21 |
23 // Return the number of bytes of physical memory on the current machine. | 22 // Return the number of bytes of physical memory on the current machine. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Returns the device's name. | 97 // Returns the device's name. |
99 static std::string GetDeviceName(); | 98 static std::string GetDeviceName(); |
100 | 99 |
101 static int DalvikHeapSizeMB(); | 100 static int DalvikHeapSizeMB(); |
102 #endif // defined(OS_ANDROID) | 101 #endif // defined(OS_ANDROID) |
103 }; | 102 }; |
104 | 103 |
105 } // namespace base | 104 } // namespace base |
106 | 105 |
107 #endif // BASE_SYS_INFO_H_ | 106 #endif // BASE_SYS_INFO_H_ |
OLD | NEW |