mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
47 lines
1.1 KiB
Java
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();
|
|
}
|
|
}
|