OLD | NEW |
1 // | 1 // |
2 // Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 // Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 // | 3 // |
4 // Use of this source code is governed by a BSD-style license | 4 // Use of this source code is governed by a BSD-style license |
5 // that can be found in the LICENSE file in the root of the source | 5 // that can be found in the LICENSE file in the root of the source |
6 // tree. An additional intellectual property rights grant can be found | 6 // tree. An additional intellectual property rights grant can be found |
7 // in the file PATENTS. All contributing project authors may | 7 // in the file PATENTS. All contributing project authors may |
8 // be found in the AUTHORS file in the root of the source tree. | 8 // be found in the AUTHORS file in the root of the source tree. |
9 // | 9 // |
10 | 10 |
11 #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_METRICS_H_ | 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
12 #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_METRICS_H_ | 12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
17 | 17 |
18 // Macros for allowing WebRTC clients (e.g. Chrome) to gather and aggregate | 18 // Macros for allowing WebRTC clients (e.g. Chrome) to gather and aggregate |
19 // statistics. | 19 // statistics. |
20 // | 20 // |
21 // Histogram for counters. | 21 // Histogram for counters. |
22 // RTC_HISTOGRAM_COUNTS(name, sample, min, max, bucket_count); | 22 // RTC_HISTOGRAM_COUNTS(name, sample, min, max, bucket_count); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 const std::string& name, int boundary); | 128 const std::string& name, int boundary); |
129 | 129 |
130 // Function for adding a |sample| to a histogram. | 130 // Function for adding a |sample| to a histogram. |
131 // |name| can be used to verify that it matches the histogram name. | 131 // |name| can be used to verify that it matches the histogram name. |
132 void HistogramAdd( | 132 void HistogramAdd( |
133 Histogram* histogram_pointer, const std::string& name, int sample); | 133 Histogram* histogram_pointer, const std::string& name, int sample); |
134 | 134 |
135 } // namespace metrics | 135 } // namespace metrics |
136 } // namespace webrtc | 136 } // namespace webrtc |
137 | 137 |
138 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_METRICS_H_ | 138 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
139 | 139 |
OLD | NEW |