| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 #if defined(OS_ANDROID) || defined(OS_LINUX) | 280 #if defined(OS_ANDROID) || defined(OS_LINUX) |
| 281 int buffers; | 281 int buffers; |
| 282 int cached; | 282 int cached; |
| 283 int active_anon; | 283 int active_anon; |
| 284 int inactive_anon; | 284 int inactive_anon; |
| 285 int active_file; | 285 int active_file; |
| 286 int inactive_file; | 286 int inactive_file; |
| 287 int dirty; | 287 int dirty; |
| 288 | 288 |
| 289 // vmstats data. | 289 // vmstats data. |
| 290 int pswpin; | 290 unsigned long pswpin; |
| 291 int pswpout; | 291 unsigned long pswpout; |
| 292 int pgmajfault; | 292 unsigned long pgmajfault; |
| 293 #endif // defined(OS_ANDROID) || defined(OS_LINUX) | 293 #endif // defined(OS_ANDROID) || defined(OS_LINUX) |
| 294 | 294 |
| 295 #if defined(OS_CHROMEOS) | 295 #if defined(OS_CHROMEOS) |
| 296 int shmem; | 296 int shmem; |
| 297 int slab; | 297 int slab; |
| 298 // Gem data will be -1 if not supported. | 298 // Gem data will be -1 if not supported. |
| 299 int gem_objects; | 299 int gem_objects; |
| 300 long long gem_size; | 300 long long gem_size; |
| 301 #endif // defined(OS_CHROMEOS) | 301 #endif // defined(OS_CHROMEOS) |
| 302 }; | 302 }; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 SystemDiskInfo disk_info_; | 415 SystemDiskInfo disk_info_; |
| 416 #endif | 416 #endif |
| 417 #if defined(OS_CHROMEOS) | 417 #if defined(OS_CHROMEOS) |
| 418 SwapInfo swap_info_; | 418 SwapInfo swap_info_; |
| 419 #endif | 419 #endif |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 } // namespace base | 422 } // namespace base |
| 423 | 423 |
| 424 #endif // BASE_PROCESS_PROCESS_METRICS_H_ | 424 #endif // BASE_PROCESS_PROCESS_METRICS_H_ |
| OLD | NEW |