| 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> |
| 11 | 11 |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "base/process/process_handle.h" | 14 #include "base/process/process_handle.h" |
| 14 #include "base/process/process_metrics.h" | 15 #include "base/process/process_metrics.h" |
| 15 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "build/build_config.h" |
| 17 #include "chrome/browser/site_details.h" | 19 #include "chrome/browser/site_details.h" |
| 18 #include "content/public/common/process_type.h" | 20 #include "content/public/common/process_type.h" |
| 19 | 21 |
| 20 // We collect data about each browser process. A browser may | 22 // We collect data about each browser process. A browser may |
| 21 // have multiple processes (of course!). Even IE has multiple | 23 // have multiple processes (of course!). Even IE has multiple |
| 22 // processes these days. | 24 // processes these days. |
| 23 struct ProcessMemoryInformation { | 25 struct ProcessMemoryInformation { |
| 24 // NOTE: Do not remove or reorder the elements in this enum, and only add new | 26 // NOTE: Do not remove or reorder the elements in this enum, and only add new |
| 25 // items at the end. We depend on these specific values in a histogram. | 27 // items at the end. We depend on these specific values in a histogram. |
| 26 enum RendererProcessType { | 28 enum RendererProcessType { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 std::vector<ProcessData> process_data_; | 177 std::vector<ProcessData> process_data_; |
| 176 | 178 |
| 177 #if defined(OS_CHROMEOS) | 179 #if defined(OS_CHROMEOS) |
| 178 base::SwapInfo swap_info_; | 180 base::SwapInfo swap_info_; |
| 179 #endif | 181 #endif |
| 180 | 182 |
| 181 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); | 183 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); |
| 182 }; | 184 }; |
| 183 | 185 |
| 184 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 186 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
| OLD | NEW |