| Index: base/metrics/histogram.cc
|
| diff --git a/base/metrics/histogram.cc b/base/metrics/histogram.cc
|
| index e8d851bf9de3ae3c2831a72d976ec9bd32b6beb5..cd6d6bea0875ee7f399700759bbf89374bf2e4f3 100644
|
| --- a/base/metrics/histogram.cc
|
| +++ b/base/metrics/histogram.cc
|
| @@ -216,9 +216,15 @@ HistogramBase* Histogram::Factory::Build() {
|
| allocator->FinalizeHistogram(histogram_ref,
|
| histogram == tentative_histogram_ptr);
|
| }
|
| +
|
| + // Update report on created histograms.
|
| + ReportHistogramActivity(*histogram, HISTOGRAM_CREATED);
|
| + } else {
|
| + // Update report on lookup histograms.
|
| + ReportHistogramActivity(*histogram, HISTOGRAM_LOOKUP);
|
| }
|
|
|
| - DCHECK_EQ(histogram_type_, histogram->GetHistogramType());
|
| + DCHECK_EQ(histogram_type_, histogram->GetHistogramType()) << name_;
|
| if (bucket_count_ != 0 &&
|
| !histogram->HasConstructionArguments(minimum_, maximum_, bucket_count_)) {
|
| // The construction arguments do not match the existing histogram. This can
|
|
|