Index: base/metrics/histogram.h |
diff --git a/base/metrics/histogram.h b/base/metrics/histogram.h |
index d82f90aabdca8d3212716b637ba0898af3ff78bb..f2566caa3f1234725aca919f981bac3d1c772fa7 100644 |
--- a/base/metrics/histogram.h |
+++ b/base/metrics/histogram.h |
@@ -307,6 +307,12 @@ class Lock; |
name, sample, base::TimeDelta::FromMilliseconds(1), \ |
base::TimeDelta::FromHours(1), 50) |
+// Use this macro when times can routinely be much longer than 10 seconds and |
+// you want 100 buckets. |
+#define UMA_HISTOGRAM_LONG_TIMES_100(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \ |
+ name, sample, base::TimeDelta::FromMilliseconds(1), \ |
+ base::TimeDelta::FromHours(1), 100) |
+ |
#define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ |
STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \ |
base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ |