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

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

Issue 5981007: fix about:memory and memory histograms to show extensions more clearly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 10 years 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698