summaryrefslogtreecommitdiffstats
path: root/base/histogram.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/histogram.h')
-rw-r--r--base/histogram.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/histogram.h b/base/histogram.h
index 9860e93..624f80a 100644
--- a/base/histogram.h
+++ b/base/histogram.h
@@ -54,6 +54,11 @@
counter.Add(sample); \
} while (0)
+#define HISTOGRAM_COUNTS_100(name, sample) do { \
+ static Histogram counter((name), 1, 100, 50); \
+ counter.Add(sample); \
+ } while (0)
+
// For folks that need real specific times, use this, but you'll only get
// samples that are in the range (overly large samples are discarded).
#define HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \