Index: webrtc/system_wrappers/include/metrics.h |
diff --git a/webrtc/system_wrappers/include/metrics.h b/webrtc/system_wrappers/include/metrics.h |
index 2e6e7b7b6b867d535b1069f6e1d1e6df5c149adc..5e8ca11e9184ef85c4b1777b7d9650c0a342c835 100644 |
--- a/webrtc/system_wrappers/include/metrics.h |
+++ b/webrtc/system_wrappers/include/metrics.h |
@@ -69,44 +69,43 @@ |
// Also consider changing string to const char* when switching to atomics. |
// Histogram for counters. |
-#define RTC_HISTOGRAM_COUNTS_100(name, sample) RTC_HISTOGRAM_COUNTS( \ |
- name, sample, 1, 100, 50) |
+#define RTC_HISTOGRAM_COUNTS_SPARSE_100(name, sample) \ |
+ RTC_HISTOGRAM_COUNTS_SPARSE(name, sample, 1, 100, 50) |
-#define RTC_HISTOGRAM_COUNTS_200(name, sample) RTC_HISTOGRAM_COUNTS( \ |
- name, sample, 1, 200, 50) |
+#define RTC_HISTOGRAM_COUNTS_SPARSE_200(name, sample) \ |
+ RTC_HISTOGRAM_COUNTS_SPARSE(name, sample, 1, 200, 50) |
-#define RTC_HISTOGRAM_COUNTS_1000(name, sample) RTC_HISTOGRAM_COUNTS( \ |
- name, sample, 1, 1000, 50) |
+#define RTC_HISTOGRAM_COUNTS_SPARSE_1000(name, sample) \ |
+ RTC_HISTOGRAM_COUNTS_SPARSE(name, sample, 1, 1000, 50) |
-#define RTC_HISTOGRAM_COUNTS_10000(name, sample) RTC_HISTOGRAM_COUNTS( \ |
- name, sample, 1, 10000, 50) |
+#define RTC_HISTOGRAM_COUNTS_SPARSE_10000(name, sample) \ |
+ RTC_HISTOGRAM_COUNTS_SPARSE(name, sample, 1, 10000, 50) |
-#define RTC_HISTOGRAM_COUNTS_100000(name, sample) RTC_HISTOGRAM_COUNTS( \ |
- name, sample, 1, 100000, 50) |
+#define RTC_HISTOGRAM_COUNTS_SPARSE_100000(name, sample) \ |
+ RTC_HISTOGRAM_COUNTS_SPARSE(name, sample, 1, 100000, 50) |
-#define RTC_HISTOGRAM_COUNTS(name, sample, min, max, bucket_count) \ |
- RTC_HISTOGRAM_COMMON_BLOCK(name, sample, \ |
- webrtc::metrics::HistogramFactoryGetCounts( \ |
- name, min, max, bucket_count)) |
+#define RTC_HISTOGRAM_COUNTS_SPARSE(name, sample, min, max, bucket_count) \ |
+ RTC_HISTOGRAM_COMMON_BLOCK_SLOW(name, sample, \ |
+ webrtc::metrics::HistogramFactoryGetCounts( \ |
+ name, min, max, bucket_count)) |
// Histogram for percentage. |
-#define RTC_HISTOGRAM_PERCENTAGE(name, sample) \ |
- RTC_HISTOGRAM_ENUMERATION(name, sample, 101) |
+#define RTC_HISTOGRAM_PERCENTAGE_SPARSE(name, sample) \ |
+ RTC_HISTOGRAM_ENUMERATION_SPARSE(name, sample, 101) |
// Histogram for enumerators. |
// |boundary| should be above the max enumerator sample. |
-#define RTC_HISTOGRAM_ENUMERATION(name, sample, boundary) \ |
- RTC_HISTOGRAM_COMMON_BLOCK(name, sample, \ |
- webrtc::metrics::HistogramFactoryGetEnumeration(name, boundary)) |
+#define RTC_HISTOGRAM_ENUMERATION_SPARSE(name, sample, boundary) \ |
+ RTC_HISTOGRAM_COMMON_BLOCK_SLOW(name, sample, \ |
+ webrtc::metrics::HistogramFactoryGetEnumeration(name, boundary)) |
-#define RTC_HISTOGRAM_COMMON_BLOCK(constant_name, sample, \ |
- factory_get_invocation) \ |
+#define RTC_HISTOGRAM_COMMON_BLOCK_SLOW(constant_name, sample, \ |
+ factory_get_invocation) \ |
do { \ |
webrtc::metrics::Histogram* histogram_pointer = factory_get_invocation; \ |
webrtc::metrics::HistogramAdd(histogram_pointer, constant_name, sample); \ |
} while (0) |
- |
namespace webrtc { |
namespace metrics { |