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

Unified Diff: base/metrics/histogram_samples.h

Issue 11022002: Add SampleMap and use it in SparseHistogram (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address more comments 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 | « base/base.gypi ('k') | base/metrics/sample_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_samples.h
diff --git a/base/metrics/histogram_samples.h b/base/metrics/histogram_samples.h
index 778b11debdc379c7c5bc410917c6011ec67ab896..c55b58442c5771d345128cc1f0a7a46e7744a0ab 100644
--- a/base/metrics/histogram_samples.h
+++ b/base/metrics/histogram_samples.h
@@ -42,11 +42,9 @@ class BASE_EXPORT HistogramSamples {
HistogramBase::Count redundant_count() const { return redundant_count_; }
protected:
- // Based on |instruction| type, add or subtract sample counts data from the
- // iterator.
- enum Instruction { ADD, SUBTRACT };
- virtual bool AddSubtractImpl(SampleCountIterator* iter,
- Instruction instruction) = 0;
+ // Based on |op| type, add or subtract sample counts data from the iterator.
+ enum Operator { ADD, SUBTRACT };
+ virtual bool AddSubtractImpl(SampleCountIterator* iter, Operator op) = 0;
void IncreaseSum(int64 diff);
void IncreaseRedundantCount(HistogramBase::Count diff);
« no previous file with comments | « base/base.gypi ('k') | base/metrics/sample_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698