| 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // - provide implementations of | 37 // - provide implementations of |
| 38 // Histogram* webrtc::metrics::HistogramFactoryGetCounts( | 38 // Histogram* webrtc::metrics::HistogramFactoryGetCounts( |
| 39 // const std::string& name, int sample, int min, int max, | 39 // const std::string& name, int sample, int min, int max, |
| 40 // int bucket_count); | 40 // int bucket_count); |
| 41 // Histogram* webrtc::metrics::HistogramFactoryGetEnumeration( | 41 // Histogram* webrtc::metrics::HistogramFactoryGetEnumeration( |
| 42 // const std::string& name, int sample, int boundary); | 42 // const std::string& name, int sample, int boundary); |
| 43 // void webrtc::metrics::HistogramAdd( | 43 // void webrtc::metrics::HistogramAdd( |
| 44 // Histogram* histogram_pointer, const std::string& name, int sample); | 44 // Histogram* histogram_pointer, const std::string& name, int sample); |
| 45 // | 45 // |
| 46 // - or link with the default implementations (i.e. | 46 // - or link with the default implementations (i.e. |
| 47 // system_wrappers/system_wrappers.gyp:metrics_default). | 47 // system_wrappers:metrics_default). |
| 48 // | 48 // |
| 49 // | 49 // |
| 50 // Example usage: | 50 // Example usage: |
| 51 // | 51 // |
| 52 // RTC_HISTOGRAM_COUNTS("WebRTC.Video.NacksSent", nacks_sent, 1, 100000, 100); | 52 // RTC_HISTOGRAM_COUNTS("WebRTC.Video.NacksSent", nacks_sent, 1, 100000, 100); |
| 53 // | 53 // |
| 54 // enum Types { | 54 // enum Types { |
| 55 // kTypeX, | 55 // kTypeX, |
| 56 // kTypeY, | 56 // kTypeY, |
| 57 // kBoundary, | 57 // kBoundary, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // Returns name of the histogram. | 235 // Returns name of the histogram. |
| 236 const std::string& GetHistogramName(Histogram* histogram_pointer); | 236 const std::string& GetHistogramName(Histogram* histogram_pointer); |
| 237 | 237 |
| 238 // Function for adding a |sample| to a histogram. | 238 // Function for adding a |sample| to a histogram. |
| 239 void HistogramAdd(Histogram* histogram_pointer, int sample); | 239 void HistogramAdd(Histogram* histogram_pointer, int sample); |
| 240 | 240 |
| 241 } // namespace metrics | 241 } // namespace metrics |
| 242 } // namespace webrtc | 242 } // namespace webrtc |
| 243 | 243 |
| 244 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ | 244 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
| 245 | |
| OLD | NEW |