OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 int num_open_fds; | 65 int num_open_fds; |
66 // Maximum number of file descriptors that can be opened in this process. | 66 // Maximum number of file descriptors that can be opened in this process. |
67 int open_fds_soft_limit; | 67 int open_fds_soft_limit; |
68 // If this is a renderer process, what type it is. | 68 // If this is a renderer process, what type it is. |
69 RendererProcessType renderer_type; | 69 RendererProcessType renderer_type; |
70 // A collection of titles used, i.e. for a tab it'll show all the page titles. | 70 // A collection of titles used, i.e. for a tab it'll show all the page titles. |
71 std::vector<base::string16> titles; | 71 std::vector<base::string16> titles; |
72 // The physical footprint is a macOS concept that tracks anonymous, | 72 // The physical footprint is a macOS concept that tracks anonymous, |
73 // non-discardable memory. | 73 // non-discardable memory. |
74 size_t phys_footprint; | 74 size_t phys_footprint; |
| 75 // TODO(erikchen): Remove this temporary estimate for private memory once the |
| 76 // memory infra service emits the same metric. https://crbug.com/720541. |
| 77 size_t private_memory_footprint; |
75 }; | 78 }; |
76 | 79 |
77 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; | 80 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; |
78 | 81 |
79 // Browser Process Information. | 82 // Browser Process Information. |
80 struct ProcessData { | 83 struct ProcessData { |
81 ProcessData(); | 84 ProcessData(); |
82 ProcessData(const ProcessData& rhs); | 85 ProcessData(const ProcessData& rhs); |
83 ~ProcessData(); | 86 ~ProcessData(); |
84 ProcessData& operator=(const ProcessData& rhs); | 87 ProcessData& operator=(const ProcessData& rhs); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 std::vector<ProcessData> process_data_; | 176 std::vector<ProcessData> process_data_; |
174 | 177 |
175 #if defined(OS_CHROMEOS) | 178 #if defined(OS_CHROMEOS) |
176 base::SwapInfo swap_info_; | 179 base::SwapInfo swap_info_; |
177 #endif | 180 #endif |
178 | 181 |
179 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); | 182 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); |
180 }; | 183 }; |
181 | 184 |
182 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 185 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
OLD | NEW |