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_INCLUDE_METRICS_H_ | 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ | 12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/base/atomicops.h" | 16 #include "webrtc/base/atomicops.h" |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/base/checks.h" |
18 #include "webrtc/common_types.h" | 18 #include "webrtc/common_types.h" |
19 #include "webrtc/system_wrappers/include/logging.h" | |
20 | 19 |
21 // Macros for allowing WebRTC clients (e.g. Chrome) to gather and aggregate | 20 // Macros for allowing WebRTC clients (e.g. Chrome) to gather and aggregate |
22 // statistics. | 21 // statistics. |
23 // | 22 // |
24 // Histogram for counters. | 23 // Histogram for counters. |
25 // RTC_HISTOGRAM_COUNTS(name, sample, min, max, bucket_count); | 24 // RTC_HISTOGRAM_COUNTS(name, sample, min, max, bucket_count); |
26 // | 25 // |
27 // Histogram for enumerators. | 26 // Histogram for enumerators. |
28 // The boundary should be above the max enumerator sample. | 27 // The boundary should be above the max enumerator sample. |
29 // RTC_HISTOGRAM_ENUMERATION(name, sample, boundary); | 28 // RTC_HISTOGRAM_ENUMERATION(name, sample, boundary); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // Returns name of the histogram. | 234 // Returns name of the histogram. |
236 const std::string& GetHistogramName(Histogram* histogram_pointer); | 235 const std::string& GetHistogramName(Histogram* histogram_pointer); |
237 | 236 |
238 // Function for adding a |sample| to a histogram. | 237 // Function for adding a |sample| to a histogram. |
239 void HistogramAdd(Histogram* histogram_pointer, int sample); | 238 void HistogramAdd(Histogram* histogram_pointer, int sample); |
240 | 239 |
241 } // namespace metrics | 240 } // namespace metrics |
242 } // namespace webrtc | 241 } // namespace webrtc |
243 | 242 |
244 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ | 243 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
OLD | NEW |