| OLD | NEW |
| 1 // Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 // Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license | 3 // Use of this source code is governed by a BSD-style license |
| 4 // that can be found in the LICENSE file in the root of the source | 4 // that can be found in the LICENSE file in the root of the source |
| 5 // tree. An additional intellectual property rights grant can be found | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
| 8 // | 8 // |
| 9 | 9 |
| 10 #include "webrtc/system_wrappers/include/metrics_default.h" | 10 #include "webrtc/system_wrappers/include/metrics_default.h" |
| 11 | 11 |
| 12 #include <algorithm> | 12 #include <algorithm> |
| 13 | 13 |
| 14 #include "webrtc/base/criticalsection.h" | 14 #include "webrtc/rtc_base/criticalsection.h" |
| 15 #include "webrtc/base/thread_annotations.h" | 15 #include "webrtc/rtc_base/thread_annotations.h" |
| 16 #include "webrtc/system_wrappers/include/metrics.h" | 16 #include "webrtc/system_wrappers/include/metrics.h" |
| 17 | 17 |
| 18 // Default implementation of histogram methods for WebRTC clients that do not | 18 // Default implementation of histogram methods for WebRTC clients that do not |
| 19 // want to provide their own implementation. | 19 // want to provide their own implementation. |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 namespace metrics { | 22 namespace metrics { |
| 23 class Histogram; | 23 class Histogram; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 return map ? map->NumSamples(name) : 0; | 298 return map ? map->NumSamples(name) : 0; |
| 299 } | 299 } |
| 300 | 300 |
| 301 int MinSample(const std::string& name) { | 301 int MinSample(const std::string& name) { |
| 302 RtcHistogramMap* map = GetMap(); | 302 RtcHistogramMap* map = GetMap(); |
| 303 return map ? map->MinSample(name) : -1; | 303 return map ? map->MinSample(name) : -1; |
| 304 } | 304 } |
| 305 | 305 |
| 306 } // namespace metrics | 306 } // namespace metrics |
| 307 } // namespace webrtc | 307 } // namespace webrtc |
| OLD | NEW |