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

Side by Side Diff: base/metrics/histogram.cc

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/metrics/histogram.h ('k') | base/values_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Histogram is an object that aggregates statistics, and can summarize them in 5 // Histogram is an object that aggregates statistics, and can summarize them in
6 // various forms, including ASCII graphical, HTML, and numerically (as a 6 // various forms, including ASCII graphical, HTML, and numerically (as a
7 // vector of numbers corresponding to each of the aggregating buckets). 7 // vector of numbers corresponding to each of the aggregating buckets).
8 // See header file for details and examples. 8 // See header file for details and examples.
9 9
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 } else { 564 } else {
565 DCHECK_GT(0, delta); 565 DCHECK_GT(0, delta);
566 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentCountLow", -delta); 566 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentCountLow", -delta);
567 if (-delta > kCommonRaceBasedCountMismatch) 567 if (-delta > kCommonRaceBasedCountMismatch)
568 inconsistencies |= COUNT_LOW_ERROR; 568 inconsistencies |= COUNT_LOW_ERROR;
569 } 569 }
570 } 570 }
571 return static_cast<Inconsistencies>(inconsistencies); 571 return static_cast<Inconsistencies>(inconsistencies);
572 } 572 }
573 573
574 Histogram::ClassType Histogram::histogram_type() const {
575 return HISTOGRAM;
576 }
577
578 Histogram::Sample Histogram::ranges(size_t i) const {
579 return ranges_[i];
580 }
581
582 size_t Histogram::bucket_count() const {
583 return bucket_count_;
584 }
585
574 //------------------------------------------------------------------------------ 586 //------------------------------------------------------------------------------
575 // Methods for the Histogram::SampleSet class 587 // Methods for the Histogram::SampleSet class
576 //------------------------------------------------------------------------------ 588 //------------------------------------------------------------------------------
577 589
578 Histogram::SampleSet::SampleSet() 590 Histogram::SampleSet::SampleSet()
579 : counts_(), 591 : counts_(),
580 sum_(0), 592 sum_(0),
581 square_sum_(0), 593 square_sum_(0),
582 redundant_count_(0) { 594 redundant_count_(0) {
583 } 595 }
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 } 1026 }
1015 1027
1016 // static 1028 // static
1017 StatisticsRecorder::HistogramMap* StatisticsRecorder::histograms_ = NULL; 1029 StatisticsRecorder::HistogramMap* StatisticsRecorder::histograms_ = NULL;
1018 // static 1030 // static
1019 Lock* StatisticsRecorder::lock_ = NULL; 1031 Lock* StatisticsRecorder::lock_ = NULL;
1020 // static 1032 // static
1021 bool StatisticsRecorder::dump_on_exit_ = false; 1033 bool StatisticsRecorder::dump_on_exit_ = false;
1022 1034
1023 } // namespace base 1035 } // namespace base
OLDNEW
« no previous file with comments | « base/metrics/histogram.h ('k') | base/values_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698