Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: base/sys_info_fuchsia.cc

Issue 2894993002: fuchsia: Implement SysInfo::AmountOfPhysicalMemory and NumberOfProcessors (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/sys_info_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/sys_info_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698