| 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_BROWSER_MEMORY_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_MEMORY_DETAILS_H_ |
| 6 #define CHROME_BROWSER_MEMORY_DETAILS_H_ | 6 #define CHROME_BROWSER_MEMORY_DETAILS_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
| 13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 | 14 |
| 15 class MessageLoop; | 15 class MessageLoop; |
| 16 | 16 |
| 17 // We collect data about each browser process. A browser may | 17 // We collect data about each browser process. A browser may |
| 18 // have multiple processes (of course!). Even IE has multiple | 18 // have multiple processes (of course!). Even IE has multiple |
| 19 // processes these days. | 19 // processes these days. |
| 20 struct ProcessMemoryInformation { | 20 struct ProcessMemoryInformation { |
| 21 ProcessMemoryInformation() { | 21 ProcessMemoryInformation() { |
| 22 memset(this, 0, sizeof(ProcessMemoryInformation)); | 22 memset(this, 0, sizeof(ProcessMemoryInformation)); |
| 23 } | 23 } |
| 24 | 24 |
| 25 // The process id. | 25 // The process id. |
| 26 int pid; | 26 int pid; |
| 27 // The working set information. | 27 // The working set information. |
| 28 process_util::WorkingSetKBytes working_set; | 28 base::WorkingSetKBytes working_set; |
| 29 // The committed bytes. | 29 // The committed bytes. |
| 30 process_util::CommittedKBytes committed; | 30 base::CommittedKBytes committed; |
| 31 // The process version | 31 // The process version |
| 32 std::wstring version; | 32 std::wstring version; |
| 33 // The process product name. | 33 // The process product name. |
| 34 std::wstring product_name; | 34 std::wstring product_name; |
| 35 // The number of processes which this memory represents. | 35 // The number of processes which this memory represents. |
| 36 int num_processes; | 36 int num_processes; |
| 37 // A process is a diagnostics process if it is rendering | 37 // A process is a diagnostics process if it is rendering |
| 38 // about:xxx information. | 38 // about:xxx information. |
| 39 bool is_diagnostics; | 39 bool is_diagnostics; |
| 40 }; | 40 }; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 ProcessData process_data_[MAX_BROWSERS]; | 130 ProcessData process_data_[MAX_BROWSERS]; |
| 131 PluginProcessInformationList plugins_; | 131 PluginProcessInformationList plugins_; |
| 132 MessageLoop* ui_loop_; | 132 MessageLoop* ui_loop_; |
| 133 | 133 |
| 134 DISALLOW_EVIL_CONSTRUCTORS(MemoryDetails); | 134 DISALLOW_EVIL_CONSTRUCTORS(MemoryDetails); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 137 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
| 138 | 138 |
| OLD | NEW |