| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/namespace contains utility functions for enumerating, ending and | 5 // This file/namespace contains utility functions for enumerating, ending and |
| 6 // computing statistics of processes. | 6 // computing statistics of processes. |
| 7 | 7 |
| 8 #ifndef BASE_PROCESS_UTIL_H_ | 8 #ifndef BASE_PROCESS_UTIL_H_ |
| 9 #define BASE_PROCESS_UTIL_H_ | 9 #define BASE_PROCESS_UTIL_H_ |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 typedef IO_COUNTERS IoCounters; | 36 typedef IO_COUNTERS IoCounters; |
| 37 #elif defined(OS_POSIX) | 37 #elif defined(OS_POSIX) |
| 38 // TODO(port): we should not rely on a Win32 structure. | 38 // TODO(port): we should not rely on a Win32 structure. |
| 39 struct ProcessEntry { | 39 struct ProcessEntry { |
| 40 base::ProcessId pid; | 40 base::ProcessId pid; |
| 41 base::ProcessId ppid; | 41 base::ProcessId ppid; |
| 42 char szExeFile[NAME_MAX + 1]; | 42 char szExeFile[NAME_MAX + 1]; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 struct IoCounters { | 45 struct IoCounters { |
| 46 unsigned long long ReadOperationCount; | 46 uint64_t ReadOperationCount; |
| 47 unsigned long long WriteOperationCount; | 47 uint64_t WriteOperationCount; |
| 48 unsigned long long OtherOperationCount; | 48 uint64_t OtherOperationCount; |
| 49 unsigned long long ReadTransferCount; | 49 uint64_t ReadTransferCount; |
| 50 unsigned long long WriteTransferCount; | 50 uint64_t WriteTransferCount; |
| 51 unsigned long long OtherTransferCount; | 51 uint64_t OtherTransferCount; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #include "base/file_descriptor_shuffle.h" | 54 #include "base/file_descriptor_shuffle.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 namespace base { | 57 namespace base { |
| 58 | 58 |
| 59 // A minimalistic but hopefully cross-platform set of exit codes. | 59 // A minimalistic but hopefully cross-platform set of exit codes. |
| 60 // Do not change the enumeration values or you will break third-party | 60 // Do not change the enumeration values or you will break third-party |
| 61 // installers. | 61 // installers. |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 // instance running inside the parent. The parent's Breakpad instance should | 460 // instance running inside the parent. The parent's Breakpad instance should |
| 461 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler | 461 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler |
| 462 // in the child after forking will restore the standard exception handler. | 462 // in the child after forking will restore the standard exception handler. |
| 463 // See http://crbug.com/20371/ for more details. | 463 // See http://crbug.com/20371/ for more details. |
| 464 void RestoreDefaultExceptionHandler(); | 464 void RestoreDefaultExceptionHandler(); |
| 465 #endif | 465 #endif |
| 466 | 466 |
| 467 } // namespace base | 467 } // namespace base |
| 468 | 468 |
| 469 #endif // BASE_PROCESS_UTIL_H_ | 469 #endif // BASE_PROCESS_UTIL_H_ |
| OLD | NEW |