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 #include "chrome/browser/memory_details.h" | 5 #include "chrome/browser/memory_details.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_version_info.h" | 8 #include "base/file_version_info.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/process_util.h" | |
11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/extensions/extension_process_manager.h" | 13 #include "chrome/browser/extensions/extension_process_manager.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
19 #include "components/nacl/common/nacl_process_type.h" | 18 #include "components/nacl/common/nacl_process_type.h" |
20 #include "content/public/browser/browser_child_process_host_iterator.h" | 19 #include "content/public/browser/browser_child_process_host_iterator.h" |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 583 |
585 if (swap_data_.orig_data_size > 0 && swap_data_.compr_data_size > 0) { | 584 if (swap_data_.orig_data_size > 0 && swap_data_.compr_data_size > 0) { |
586 UMA_HISTOGRAM_CUSTOM_COUNTS( | 585 UMA_HISTOGRAM_CUSTOM_COUNTS( |
587 "Memory.Swap.CompressionRatio", | 586 "Memory.Swap.CompressionRatio", |
588 swap_data_.orig_data_size / swap_data_.compr_data_size, | 587 swap_data_.orig_data_size / swap_data_.compr_data_size, |
589 1, 20, 20); | 588 1, 20, 20); |
590 } | 589 } |
591 } | 590 } |
592 | 591 |
593 #endif | 592 #endif |
OLD | NEW |