Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2296)

Side by Side Diff: chrome/browser/memory_details.h

Issue 2875823004: Add experimental private memory footprint metrics. (Closed)
Patch Set: compile error. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/memory_details.cc » ('j') | chrome/browser/memory_details_mac.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/memory_details.cc » ('j') | chrome/browser/memory_details_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698