| 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 23 matching lines...) Expand all Loading... |
| 34 RENDERER_INTERSTITIAL, // malware/phishing interstitial | 34 RENDERER_INTERSTITIAL, // malware/phishing interstitial |
| 35 RENDERER_BACKGROUND_APP // hosted app background page | 35 RENDERER_BACKGROUND_APP // hosted app background page |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 static std::string GetRendererTypeNameInEnglish(RendererProcessType type); | 38 static std::string GetRendererTypeNameInEnglish(RendererProcessType type); |
| 39 static std::string GetFullTypeNameInEnglish( | 39 static std::string GetFullTypeNameInEnglish( |
| 40 int process_type, | 40 int process_type, |
| 41 RendererProcessType rtype); | 41 RendererProcessType rtype); |
| 42 | 42 |
| 43 ProcessMemoryInformation(); | 43 ProcessMemoryInformation(); |
| 44 ProcessMemoryInformation(const ProcessMemoryInformation& other); |
| 44 ~ProcessMemoryInformation(); | 45 ~ProcessMemoryInformation(); |
| 45 | 46 |
| 46 // Default ordering is by private memory consumption. | 47 // Default ordering is by private memory consumption. |
| 47 bool operator<(const ProcessMemoryInformation& rhs) const; | 48 bool operator<(const ProcessMemoryInformation& rhs) const; |
| 48 | 49 |
| 49 // The process id. | 50 // The process id. |
| 50 base::ProcessId pid; | 51 base::ProcessId pid; |
| 51 // The working set information. | 52 // The working set information. |
| 52 base::WorkingSetKBytes working_set; | 53 base::WorkingSetKBytes working_set; |
| 53 // The committed bytes. | 54 // The committed bytes. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 std::vector<ProcessData> process_data_; | 178 std::vector<ProcessData> process_data_; |
| 178 | 179 |
| 179 #if defined(OS_CHROMEOS) | 180 #if defined(OS_CHROMEOS) |
| 180 base::SwapInfo swap_info_; | 181 base::SwapInfo swap_info_; |
| 181 #endif | 182 #endif |
| 182 | 183 |
| 183 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); | 184 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); |
| 184 }; | 185 }; |
| 185 | 186 |
| 186 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 187 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
| OLD | NEW |