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

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

Issue 2694363007: Add memory and CPU histogram for OOPIF
Patch Set: Created 3 years, 10 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // The process product name. 58 // The process product name.
59 base::string16 product_name; 59 base::string16 product_name;
60 // The number of processes which this memory represents. 60 // The number of processes which this memory represents.
61 int num_processes; 61 int num_processes;
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 // If this is a renderer process, what type it is. 64 // If this is a renderer process, what type it is.
65 RendererProcessType renderer_type; 65 RendererProcessType renderer_type;
66 // A collection of titles used, i.e. for a tab it'll show all the page titles. 66 // A collection of titles used, i.e. for a tab it'll show all the page titles.
67 std::vector<base::string16> titles; 67 std::vector<base::string16> titles;
68 // True if it is a renderer containing an out-of-process iframe.
69 bool contains_oopif = false;
jochen (gone - plz use gerrit) 2017/02/17 15:32:46 please initialize this field in the ctor instead o
68 }; 70 };
69 71
70 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; 72 typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList;
71 73
72 // Browser Process Information. 74 // Browser Process Information.
73 struct ProcessData { 75 struct ProcessData {
74 ProcessData(); 76 ProcessData();
75 ProcessData(const ProcessData& rhs); 77 ProcessData(const ProcessData& rhs);
76 ~ProcessData(); 78 ~ProcessData();
77 ProcessData& operator=(const ProcessData& rhs); 79 ProcessData& operator=(const ProcessData& rhs);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 std::vector<ProcessData> process_data_; 168 std::vector<ProcessData> process_data_;
167 169
168 #if defined(OS_CHROMEOS) 170 #if defined(OS_CHROMEOS)
169 base::SwapInfo swap_info_; 171 base::SwapInfo swap_info_;
170 #endif 172 #endif
171 173
172 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); 174 DISALLOW_COPY_AND_ASSIGN(MemoryDetails);
173 }; 175 };
174 176
175 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ 177 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/memory_details.cc » ('j') | chrome/browser/performance_monitor/process_metrics_history.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698