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.
5 #include "base/sys_info.h"
7 #include <zircon/syscalls.h>
9 #include "base/logging.h"
14 int64_t SysInfo::AmountOfPhysicalMemoryImpl() {
15 return zx_system_get_physmem();
19 int64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() {
20 // TODO(fuchsia): https://crbug.com/706592 This is not exposed.
26 int SysInfo::NumberOfProcessors() {
27 return zx_system_get_num_cpus();
31 int64_t SysInfo::AmountOfVirtualMemory() {