OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "base/process/process_metrics.h" | 5 #include "base/process/process_metrics.h" |
6 | 6 |
7 #include <mach/task.h> | 7 #include <mach/task.h> |
| 8 #include <stddef.h> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 | 11 |
11 namespace base { | 12 namespace base { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 bool GetTaskInfo(task_basic_info_64* task_info_data) { | 16 bool GetTaskInfo(task_basic_info_64* task_info_data) { |
16 mach_msg_type_number_t count = TASK_BASIC_INFO_64_COUNT; | 17 mach_msg_type_number_t count = TASK_BASIC_INFO_64_COUNT; |
17 kern_return_t kr = task_info(mach_task_self(), | 18 kern_return_t kr = task_info(mach_task_self(), |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 89 } |
89 | 90 |
90 // Bytes committed by the system. | 91 // Bytes committed by the system. |
91 bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) { | 92 bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) { |
92 // Unimplemented. Must enable unittest for IOS when this gets implemented. | 93 // Unimplemented. Must enable unittest for IOS when this gets implemented. |
93 NOTIMPLEMENTED(); | 94 NOTIMPLEMENTED(); |
94 return false; | 95 return false; |
95 } | 96 } |
96 | 97 |
97 } // namespace base | 98 } // namespace base |
OLD | NEW |