public class TimeWindowHistogram
extends java.lang.Object
Constructor and Description |
---|
TimeWindowHistogram(Clock clock,
HistogramConfig histogramConfig) |
Modifier and Type | Method and Description |
---|---|
double |
histogramCountAtValue(long value) |
double |
percentile(double percentile) |
double |
percentile(double percentile,
java.util.concurrent.TimeUnit unit) |
void |
recordDouble(double value) |
void |
recordLong(long value) |
HistogramSnapshot |
takeSnapshot(long count,
double total,
double max,
boolean supportsAggregablePercentiles) |
public TimeWindowHistogram(Clock clock, HistogramConfig histogramConfig)
public final double percentile(double percentile)
public final double percentile(double percentile, java.util.concurrent.TimeUnit unit)
public final double histogramCountAtValue(long value)
public final HistogramSnapshot takeSnapshot(long count, double total, double max, boolean supportsAggregablePercentiles)
public final void recordLong(long value)
public final void recordDouble(double value)