Package org.webrtc

Class Histogram

java.lang.Object
org.webrtc.Histogram

class Histogram extends Object
Class for holding the native pointer of a histogram. Since there is no way to destroy a histogram, please don't create unnecessary instances of this object. This class is thread safe. Usage example: private static final Histogram someMetricHistogram = Histogram.createCounts("WebRTC.Video.SomeMetric", 1, 10000, 50); someMetricHistogram.addSample(someVariable);
  • Field Details

    • handle

      private final long handle
  • Constructor Details

    • Histogram

      private Histogram(long handle)
  • Method Details

    • createCounts

      public static Histogram createCounts(String name, int min, int max, int bucketCount)
    • createEnumeration

      public static Histogram createEnumeration(String name, int max)
    • addSample

      public void addSample(int sample)
    • nativeCreateCounts

      private static long nativeCreateCounts(String name, int min, int max, int bucketCount)
    • nativeCreateEnumeration

      private static long nativeCreateEnumeration(String name, int max)
    • nativeAddSample

      private static void nativeAddSample(long handle, int sample)