RTCMetricsSampleInfo.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright 2016 The WebRTC project authors. All Rights Reserved.
  3. *
  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
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import <Foundation/Foundation.h>
  11. #import "RTCMacros.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. RTC_OBJC_EXPORT
  14. @interface RTC_OBJC_TYPE (RTCMetricsSampleInfo) : NSObject
  15. /**
  16. * Example of RTCMetricsSampleInfo:
  17. * name: "WebRTC.Video.InputFramesPerSecond"
  18. * min: 1
  19. * max: 100
  20. * bucketCount: 50
  21. * samples: [29]:2 [30]:1
  22. */
  23. /** The name of the histogram. */
  24. @property(nonatomic, readonly) NSString *name;
  25. /** The minimum bucket value. */
  26. @property(nonatomic, readonly) int min;
  27. /** The maximum bucket value. */
  28. @property(nonatomic, readonly) int max;
  29. /** The number of buckets. */
  30. @property(nonatomic, readonly) int bucketCount;
  31. /** A dictionary holding the samples <value, # of events>. */
  32. @property(nonatomic, readonly) NSDictionary<NSNumber *, NSNumber *> *samples;
  33. - (instancetype)init NS_UNAVAILABLE;
  34. @end
  35. NS_ASSUME_NONNULL_END