Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1402)

Unified Diff: base/message_loop.cc

Issue 11342060: Histogram type support in HistogramBase and remove SetRangeDescription function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/metrics/histogram.h » ('j') | base/metrics/histogram.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 4c82ebc545cfce7bc9dbd53ac368906de339db6e..f4279935227e760f0061025a092ca477ba19b249 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -624,12 +624,12 @@ void MessageLoop::StartHistogrammer() {
if (enable_histogrammer_ && !message_histogram_
&& base::StatisticsRecorder::IsActive()) {
DCHECK(!thread_name_.empty());
- message_histogram_ = base::LinearHistogram::FactoryGet(
+ message_histogram_ = base::LinearHistogram::FactoryGetWithRangeDescription(
"MsgLoop:" + thread_name_,
kLeastNonZeroMessageId, kMaxMessageId,
kNumberOfDistinctMessagesDisplayed,
- message_histogram_->kHexRangePrintingFlag);
- message_histogram_->SetRangeDescriptions(event_descriptions_);
+ message_histogram_->kHexRangePrintingFlag,
+ event_descriptions_);
}
#endif
}
« no previous file with comments | « no previous file | base/metrics/histogram.h » ('j') | base/metrics/histogram.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698