OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 // The working set information. | 24 // The working set information. |
25 base::WorkingSetKBytes working_set; | 25 base::WorkingSetKBytes working_set; |
26 // The committed bytes. | 26 // The committed bytes. |
27 base::CommittedKBytes committed; | 27 base::CommittedKBytes committed; |
28 // The process version | 28 // The process version |
29 std::wstring version; | 29 std::wstring version; |
30 // The process product name. | 30 // The process product name. |
31 std::wstring product_name; | 31 std::wstring product_name; |
32 // The number of processes which this memory represents. | 32 // The number of processes which this memory represents. |
33 int num_processes; | 33 int num_processes; |
34 // A process is a diagnostics process if it is rendering | 34 // A process is a diagnostics process if it is rendering about:memory. |
35 // about:xxx information. | 35 // Mark this specially so that it can avoid counting it in its own |
| 36 // results. |
36 bool is_diagnostics; | 37 bool is_diagnostics; |
37 // If this is a child process of Chrome, what type (i.e. plugin) it is. | 38 // If this is a child process of Chrome, what type (i.e. plugin) it is. |
38 ChildProcessInfo::ProcessType type; | 39 ChildProcessInfo::ProcessType type; |
| 40 // If this is a renderer process, what type it is. |
| 41 ChildProcessInfo::RendererProcessType renderer_type; |
39 // A collection of titles used, i.e. for a tab it'll show all the page titles. | 42 // A collection of titles used, i.e. for a tab it'll show all the page titles. |
40 std::vector<std::wstring> titles; | 43 std::vector<std::wstring> titles; |
41 }; | 44 }; |
42 | 45 |
43 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; | 46 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; |
44 | 47 |
45 // Browser Process Information. | 48 // Browser Process Information. |
46 struct ProcessData { | 49 struct ProcessData { |
47 ProcessData(); | 50 ProcessData(); |
48 ProcessData(const ProcessData& rhs); | 51 ProcessData(const ProcessData& rhs); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 143 |
141 // Returns a pointer to the ProcessData structure for Chrome. | 144 // Returns a pointer to the ProcessData structure for Chrome. |
142 ProcessData* ChromeBrowser(); | 145 ProcessData* ChromeBrowser(); |
143 | 146 |
144 std::vector<ProcessData> process_data_; | 147 std::vector<ProcessData> process_data_; |
145 | 148 |
146 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); | 149 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); |
147 }; | 150 }; |
148 | 151 |
149 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 152 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
OLD | NEW |