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 |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 #if defined(OS_ANDROID) || defined(OS_LINUX) | 289 #if defined(OS_ANDROID) || defined(OS_LINUX) |
290 int buffers; | 290 int buffers; |
291 int cached; | 291 int cached; |
292 int active_anon; | 292 int active_anon; |
293 int inactive_anon; | 293 int inactive_anon; |
294 int active_file; | 294 int active_file; |
295 int inactive_file; | 295 int inactive_file; |
296 int dirty; | 296 int dirty; |
297 | 297 |
298 // vmstats data. | 298 // vmstats data. |
299 int pswpin; | 299 unsigned long pswpin; |
300 int pswpout; | 300 unsigned long pswpout; |
301 int pgmajfault; | 301 unsigned long pgmajfault; |
302 #endif // defined(OS_ANDROID) || defined(OS_LINUX) | 302 #endif // defined(OS_ANDROID) || defined(OS_LINUX) |
303 | 303 |
304 #if defined(OS_CHROMEOS) | 304 #if defined(OS_CHROMEOS) |
305 int shmem; | 305 int shmem; |
306 int slab; | 306 int slab; |
307 // Gem data will be -1 if not supported. | 307 // Gem data will be -1 if not supported. |
308 int gem_objects; | 308 int gem_objects; |
309 long long gem_size; | 309 long long gem_size; |
310 #endif // defined(OS_CHROMEOS) | 310 #endif // defined(OS_CHROMEOS) |
311 }; | 311 }; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 SystemDiskInfo disk_info_; | 424 SystemDiskInfo disk_info_; |
425 #endif | 425 #endif |
426 #if defined(OS_CHROMEOS) | 426 #if defined(OS_CHROMEOS) |
427 SwapInfo swap_info_; | 427 SwapInfo swap_info_; |
428 #endif | 428 #endif |
429 }; | 429 }; |
430 | 430 |
431 } // namespace base | 431 } // namespace base |
432 | 432 |
433 #endif // BASE_PROCESS_PROCESS_METRICS_H_ | 433 #endif // BASE_PROCESS_PROCESS_METRICS_H_ |
OLD | NEW |