Index: chrome/browser/metrics/metrics_memory_details.cc |
diff --git a/chrome/browser/metrics/metrics_memory_details.cc b/chrome/browser/metrics/metrics_memory_details.cc |
index 69b343240dfbdabddcbae2da0f903e47ea22a949..2d830492d47d947b82db355821e5e4d0fbdbe10b 100644 |
--- a/chrome/browser/metrics/metrics_memory_details.cc |
+++ b/chrome/browser/metrics/metrics_memory_details.cc |
@@ -195,8 +195,11 @@ void MetricsMemoryDetails::UpdateHistograms() { |
// TODO(viettrungluu): Do we want separate counts for the other |
// (platform-specific) process types? |
- int total_sample = static_cast<int>(aggregate_memory / 1000); |
- UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample); |
+ // TODO(rkaplow): Remove once we've verified Memory.Total2 is ok. |
+ int total_sample_old = static_cast<int>(aggregate_memory / 1000); |
+ UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample_old); |
+ int total_sample = static_cast<int>(aggregate_memory / 1024); |
+ UMA_HISTOGRAM_MEMORY_LARGE_MB("Memory.Total2", total_sample); |
#if defined(OS_CHROMEOS) |
UpdateSwapHistograms(); |
@@ -272,8 +275,11 @@ void MetricsMemoryDetails::UpdateSwapHistograms() { |
} |
} |
- int total_sample = static_cast<int>(aggregate_memory / 1000); |
- UMA_HISTOGRAM_MEMORY_MB("Memory.Swap.Total", total_sample); |
+ // TODO(rkaplow): Remove once we've verified Memory.Swap.Total2 is ok. |
+ int total_sample_old = static_cast<int>(aggregate_memory / 1000); |
+ UMA_HISTOGRAM_MEMORY_MB("Memory.Swap.Total", total_sample_old); |
+ int total_sample = static_cast<int>(aggregate_memory / 1024); |
+ UMA_HISTOGRAM_MEMORY_LARGE_MB("Memory.Swap.Total2", total_sample); |
UMA_HISTOGRAM_CUSTOM_COUNTS("Memory.Swap.CompressedDataSize", |
swap_info().compr_data_size / (1024 * 1024), 1, |