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

Unified Diff: base/metrics/histogram_macros.h

Issue 2393493002: Expose macros from base/metrics/histogram_macros.h as functions (Closed)
Patch Set: Review comments Created 4 years, 1 month 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
Index: base/metrics/histogram_macros.h
diff --git a/base/metrics/histogram_macros.h b/base/metrics/histogram_macros.h
index 0ee7d2ca1a7880bf6924c96b9353375a1d0e91dd..9e3caec3a349b2585eb1d82aea4f3b8e213f76da 100644
--- a/base/metrics/histogram_macros.h
+++ b/base/metrics/histogram_macros.h
@@ -67,8 +67,8 @@
// Sample usage:
// UMA_HISTOGRAM_EXACT_LINEAR("Histogram.Linear", count, 10);
-#define UMA_HISTOGRAM_EXACT_LINEAR(name, sample, value_max) \
- UMA_HISTOGRAM_ENUMERATION(name, sample, value_max+1)
+#define UMA_HISTOGRAM_EXACT_LINEAR(name, sample, value_max) \
+ UMA_HISTOGRAM_ENUMERATION(name, sample, value_max)
wychen 2016/11/14 23:56:11 Ah. I was confused why we have to +1 twice.
// Used for capturing basic percentages. This will be 100 buckets of size 1.

Powered by Google App Engine
This is Rietveld 408576698