summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/histogram.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/base/histogram.h b/base/histogram.h
index 7c4b3b8..f189a06 100644
--- a/base/histogram.h
+++ b/base/histogram.h
@@ -41,7 +41,7 @@
//------------------------------------------------------------------------------
// Provide easy general purpose histogram in a macro, just like stats counters.
-// The first two macros use 50 buckets.
+// The first four macros use 50 buckets.
#define HISTOGRAM_TIMES(name, sample) do { \
static Histogram counter((name), base::TimeDelta::FromMilliseconds(1), \
@@ -59,6 +59,11 @@
counter.Add(sample); \
} while (0)
+#define HISTOGRAM_COUNTS_10000(name, sample) do { \
+ static Histogram counter((name), 1, 10000, 50); \
+ counter.Add(sample); \
+ } while (0)
+
#define HISTOGRAM_PERCENTAGE(name, under_one_hundred) do { \
static LinearHistogram counter((name), 1, 100, 101); \
counter.Add(under_one_hundred); \
@@ -171,6 +176,12 @@ static const int kRendererHistogramFlag = 1 << 4;
counter.Add(sample); \
} while (0)
+#define UMA_HISTOGRAM_COUNTS_10000(name, sample) do { \
+ static Histogram counter((name), 1, 10000, 50); \
+ counter.SetFlags(kUmaTargetedHistogramFlag); \
+ counter.Add(sample); \
+ } while (0)
+
#define UMA_HISTOGRAM_MEMORY_KB(name, sample) do { \
static Histogram counter((name), 1000, 500000, 50); \
counter.SetFlags(kUmaTargetedHistogramFlag); \