Index: webrtc/system_wrappers/source/metrics_default.cc |
diff --git a/webrtc/system_wrappers/source/metrics_default.cc b/webrtc/system_wrappers/source/metrics_default.cc |
index d7d24fa50dab0e9e33aa8f8aadd3ac32b0f63bd3..6ca90dafdc84933c8805f0f550809c1ceb36fe66 100644 |
--- a/webrtc/system_wrappers/source/metrics_default.cc |
+++ b/webrtc/system_wrappers/source/metrics_default.cc |
@@ -213,6 +213,19 @@ Histogram* HistogramFactoryGetCounts(const std::string& name, |
int min, |
int max, |
int bucket_count) { |
+ // TODO(asapersson): Alternative implementation will be needed if this |
+ // histogram type should be truly exponential. |
+ return HistogramFactoryGetCountsLinear(name, min, max, bucket_count); |
+} |
+ |
+// Histogram with linearly spaced buckets. |
+// Creates (or finds) histogram. |
+// The returned histogram pointer is cached (and used for adding samples in |
+// subsequent calls). |
+Histogram* HistogramFactoryGetCountsLinear(const std::string& name, |
+ int min, |
+ int max, |
+ int bucket_count) { |
RtcHistogramMap* map = GetMap(); |
if (!map) |
return nullptr; |