Rabbit-R1/original r1/java/sources/org/webrtc/Metrics.java
2024-05-21 17:08:36 -04:00

47 lines
1.1 KiB
Java

package org.webrtc;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes3.dex */
public class Metrics {
private static final String TAG = "Metrics";
public final Map<String, HistogramInfo> map = new HashMap();
private static native void nativeEnable();
private static native Metrics nativeGetAndReset();
Metrics() {
}
/* loaded from: classes3.dex */
public static class HistogramInfo {
public final int bucketCount;
public final int max;
public final int min;
public final Map<Integer, Integer> samples = new HashMap();
public HistogramInfo(int i, int i2, int i3) {
this.min = i;
this.max = i2;
this.bucketCount = i3;
}
public void addSample(int i, int i2) {
this.samples.put(Integer.valueOf(i), Integer.valueOf(i2));
}
}
private void add(String str, HistogramInfo histogramInfo) {
this.map.put(str, histogramInfo);
}
public static void enable() {
nativeEnable();
}
public static Metrics getAndReset() {
return nativeGetAndReset();
}
}