OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/sys_info.h" |
| 6 |
| 7 #include <magenta/syscalls.h> |
| 8 |
| 9 namespace base { |
| 10 |
| 11 // static |
| 12 int64_t SysInfo::AmountOfPhysicalMemory() { |
| 13 return mx_system_get_physmem(); |
| 14 } |
| 15 |
| 16 // static |
| 17 int SysInfo::NumberOfProcessors() { |
| 18 return mx_system_get_num_cpus(); |
| 19 } |
| 20 |
| 21 } // namespace base |
OLD | NEW |