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 // This file contains routines for gathering resource statistics for processes | 5 // This file contains routines for gathering resource statistics for processes |
6 // running on the system. | 6 // running on the system. |
7 | 7 |
8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_ | 8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_ |
9 #define BASE_PROCESS_PROCESS_METRICS_H_ | 9 #define BASE_PROCESS_PROCESS_METRICS_H_ |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/base_export.h" | 13 #include "base/base_export.h" |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/process.h" | 15 #include "base/process.h" |
16 #include "base/time.h" | 16 #include "base/time/time.h" |
17 | 17 |
18 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
19 #include <mach/mach.h> | 19 #include <mach/mach.h> |
20 #endif | 20 #endif |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 | 23 |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 struct IoCounters : public IO_COUNTERS { | 25 struct IoCounters : public IO_COUNTERS { |
26 }; | 26 }; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 }; | 233 }; |
234 // Retrieves data from /proc/meminfo about system-wide memory consumption. | 234 // Retrieves data from /proc/meminfo about system-wide memory consumption. |
235 // Fills in the provided |meminfo| structure. Returns true on success. | 235 // Fills in the provided |meminfo| structure. Returns true on success. |
236 // Exposed for memory debugging widget. | 236 // Exposed for memory debugging widget. |
237 BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo); | 237 BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo); |
238 #endif // defined(OS_LINUX) || defined(OS_ANDROID) | 238 #endif // defined(OS_LINUX) || defined(OS_ANDROID) |
239 | 239 |
240 } // namespace base | 240 } // namespace base |
241 | 241 |
242 #endif // BASE_PROCESS_PROCESS_METRICS_H_ | 242 #endif // BASE_PROCESS_PROCESS_METRICS_H_ |
OLD | NEW |