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

Unified Diff: base/metrics/histogram.h

Issue 1256363002: Add support to increase a UMA histogram bucket by an aribitrary integer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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.cc » ('j') | base/metrics/histogram_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram.h
diff --git a/base/metrics/histogram.h b/base/metrics/histogram.h
index 58bc0297aba45c9838fe22ed8949880288c7edea..a5f75d294cd6810efe2a86e5db30f3a5144e6cff 100644
--- a/base/metrics/histogram.h
+++ b/base/metrics/histogram.h
@@ -181,6 +181,7 @@ class BASE_EXPORT Histogram : public HistogramBase {
Sample expected_maximum,
size_t expected_bucket_count) const override;
void Add(Sample value) override;
+ void MultiAdd(Sample value, int repetition) override;
bengr 2015/07/28 17:18:10 Why the name 'repetition'?
scoped_ptr<HistogramSamples> SnapshotSamples() const override;
void AddSamples(const HistogramSamples& samples) override;
bool AddSamplesFromPickle(base::PickleIterator* iter) override;
@@ -218,6 +219,7 @@ class BASE_EXPORT Histogram : public HistogramBase {
FRIEND_TEST_ALL_PREFIXES(HistogramTest, CorruptBucketBounds);
FRIEND_TEST_ALL_PREFIXES(HistogramTest, CorruptSampleCounts);
FRIEND_TEST_ALL_PREFIXES(HistogramTest, NameMatchTest);
+ FRIEND_TEST_ALL_PREFIXES(HistogramTest, MultiAddTest);
friend class StatisticsRecorder; // To allow it to delete duplicates.
friend class StatisticsRecorderTest;
« no previous file with comments | « no previous file | base/metrics/histogram.cc » ('j') | base/metrics/histogram_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698