mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
33 lines
924 B
Java
33 lines
924 B
Java
package io.sentry.metrics;
|
|
|
|
import io.sentry.MeasurementUnit;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class DistributionMetric extends Metric {
|
|
private final List<Double> values;
|
|
|
|
@Override // io.sentry.metrics.Metric
|
|
public Iterable<?> serialize() {
|
|
return this.values;
|
|
}
|
|
|
|
public DistributionMetric(String str, double d, MeasurementUnit measurementUnit, Map<String, String> map) {
|
|
super(MetricType.Distribution, str, measurementUnit, map);
|
|
ArrayList arrayList = new ArrayList();
|
|
this.values = arrayList;
|
|
arrayList.add(Double.valueOf(d));
|
|
}
|
|
|
|
@Override // io.sentry.metrics.Metric
|
|
public void add(double d) {
|
|
this.values.add(Double.valueOf(d));
|
|
}
|
|
|
|
@Override // io.sentry.metrics.Metric
|
|
public int getWeight() {
|
|
return this.values.size();
|
|
}
|
|
}
|