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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // If this is a child process of Chrome, what type (i.e. plugin) it is. | 62 // If this is a child process of Chrome, what type (i.e. plugin) it is. |
63 int process_type; | 63 int process_type; |
64 // Number of open file descriptors in this process. | 64 // Number of open file descriptors in this process. |
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, |
| 73 // non-discardable memory. |
| 74 size_t phys_footprint; |
72 }; | 75 }; |
73 | 76 |
74 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; | 77 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; |
75 | 78 |
76 // Browser Process Information. | 79 // Browser Process Information. |
77 struct ProcessData { | 80 struct ProcessData { |
78 ProcessData(); | 81 ProcessData(); |
79 ProcessData(const ProcessData& rhs); | 82 ProcessData(const ProcessData& rhs); |
80 ~ProcessData(); | 83 ~ProcessData(); |
81 ProcessData& operator=(const ProcessData& rhs); | 84 ProcessData& operator=(const ProcessData& rhs); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 std::vector<ProcessData> process_data_; | 173 std::vector<ProcessData> process_data_; |
171 | 174 |
172 #if defined(OS_CHROMEOS) | 175 #if defined(OS_CHROMEOS) |
173 base::SwapInfo swap_info_; | 176 base::SwapInfo swap_info_; |
174 #endif | 177 #endif |
175 | 178 |
176 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); | 179 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); |
177 }; | 180 }; |
178 | 181 |
179 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 182 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
OLD | NEW |