| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 // Enables low fragmentation heap (LFH) for every heaps of this process. This | 250 // Enables low fragmentation heap (LFH) for every heaps of this process. This |
| 251 // won't have any effect on heaps created after this function call. It will not | 251 // won't have any effect on heaps created after this function call. It will not |
| 252 // modify data allocated in the heaps before calling this function. So it is | 252 // modify data allocated in the heaps before calling this function. So it is |
| 253 // better to call this function early in initialization and again before | 253 // better to call this function early in initialization and again before |
| 254 // entering the main loop. | 254 // entering the main loop. |
| 255 // Note: Returns true on Windows 2000 without doing anything. | 255 // Note: Returns true on Windows 2000 without doing anything. |
| 256 bool EnableLowFragmentationHeap(); | 256 bool EnableLowFragmentationHeap(); |
| 257 | 257 |
| 258 // Enable 'terminate on heap corruption' flag. Helps protect against heap |
| 259 // overflow. Has no effect if the OS doesn't provide the necessary facility. |
| 260 void EnableTerminationOnHeapCorruption(); |
| 261 |
| 258 // If supported on the platform, and the user has sufficent rights, increase | 262 // If supported on the platform, and the user has sufficent rights, increase |
| 259 // the current process's scheduling priority to a high priority. | 263 // the current process's scheduling priority to a high priority. |
| 260 void RaiseProcessToHighPriority(); | 264 void RaiseProcessToHighPriority(); |
| 261 | 265 |
| 262 } // namespace process_util | 266 } // namespace process_util |
| 263 | 267 |
| 264 #endif // BASE_PROCESS_UTIL_H_ | 268 #endif // BASE_PROCESS_UTIL_H_ |
| OLD | NEW |