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 #ifndef CHROME_TEST_PERF_MEM_USAGE_H__ | 5 #ifndef CHROME_TEST_PERF_MEM_USAGE_H_ |
6 #define CHROME_TEST_PERF_MEM_USAGE_H__ | 6 #define CHROME_TEST_PERF_MEM_USAGE_H_ |
7 | 7 |
8 // Get memory information for the process with given process ID. | 8 // Get memory information for the process with given process ID. |
9 // | 9 // |
10 // The Windows psapi provides memory information of a process through structure | 10 // The Windows psapi provides memory information of a process through structure |
11 // RPROCESS_MEMORY_COUNTERS_EX. Relevant fields are: | 11 // RPROCESS_MEMORY_COUNTERS_EX. Relevant fields are: |
12 // PagefileUsage: private (not shared) committed virtual space in process. | 12 // PagefileUsage: private (not shared) committed virtual space in process. |
13 // This is "VM Size" in task manager processes tab. | 13 // This is "VM Size" in task manager processes tab. |
14 // PeakPagefileUsage: peak value of PagefileUsage. | 14 // PeakPagefileUsage: peak value of PagefileUsage. |
15 // WorkingSetSize: physical memory allocated to process including shared pages. | 15 // WorkingSetSize: physical memory allocated to process including shared pages. |
16 // This is "Memory Usage" in task manager processes tab. | 16 // This is "Memory Usage" in task manager processes tab. |
(...skipping 16 matching lines...) Expand all Loading... |
33 size_t *current_virtual_size, | 33 size_t *current_virtual_size, |
34 size_t *peak_working_set_size, | 34 size_t *peak_working_set_size, |
35 size_t *current_working_set_size); | 35 size_t *current_working_set_size); |
36 | 36 |
37 // Get the number of bytes currently committed by the system. | 37 // Get the number of bytes currently committed by the system. |
38 // Returns -1 on failure. | 38 // Returns -1 on failure. |
39 size_t GetSystemCommitCharge(); | 39 size_t GetSystemCommitCharge(); |
40 | 40 |
41 // Get and print memory usage information for running chrome processes. | 41 // Get and print memory usage information for running chrome processes. |
42 void PrintChromeMemoryUsageInfo(); | 42 void PrintChromeMemoryUsageInfo(); |
43 #endif // CHROME_TEST_PERF_MEM_USAGE_H__ | 43 |
| 44 #endif // CHROME_TEST_PERF_MEM_USAGE_H_ |
OLD | NEW |