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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // Get histogram for enumerators. | 282 // Get histogram for enumerators. |
283 // |boundary| should be above the max enumerator sample. | 283 // |boundary| should be above the max enumerator sample. |
284 Histogram* HistogramFactoryGetEnumeration( | 284 Histogram* HistogramFactoryGetEnumeration( |
285 const std::string& name, int boundary); | 285 const std::string& name, int boundary); |
286 | 286 |
287 // Function for adding a |sample| to a histogram. | 287 // Function for adding a |sample| to a histogram. |
288 // |name| can be used to verify that it matches the histogram name. | 288 // |name| can be used to verify that it matches the histogram name. |
289 void HistogramAdd( | 289 void HistogramAdd( |
290 Histogram* histogram_pointer, const std::string& name, int sample); | 290 Histogram* histogram_pointer, const std::string& name, int sample); |
291 | 291 |
| 292 // Function for adding a |sample| to a histogram without checkking the name. |
| 293 void HistogramAdd(Histogram* histogram_pointer, int sample); |
| 294 |
292 } // namespace metrics | 295 } // namespace metrics |
293 } // namespace webrtc | 296 } // namespace webrtc |
294 | 297 |
295 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ | 298 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_METRICS_H_ |
296 | 299 |
OLD | NEW |