public class Histogram extends Object implements NanoSampler
| Constructor and Description |
|---|
Histogram() |
Histogram(int powersOf2,
int fractionBits) |
Histogram(int powersOf2,
int fractionBits,
double minValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Histogram h) |
boolean |
equals(Object obj) |
long |
floor() |
int |
fractionBits() |
double[] |
getPercentiles() |
double[] |
getPercentiles(double[] percentileFor) |
void |
init(int powersOf2,
int fractionBits,
long overRange,
long totalCount,
long floor)
Re initialise this histogram from deserialized data
|
long |
overRange() |
double |
percentile(double fraction) |
static double[] |
percentilesFor(long count) |
int |
powersOf2() |
void |
reset() |
int |
sample(double time) |
int[] |
sampleCount() |
void |
sampleNanos(long nanos) |
static Histogram |
timeMicros() |
String |
toLongMicrosFormat(DoubleFunction<Double> toMicros) |
String |
toMicrosFormat() |
String |
toMicrosFormat(DoubleFunction<Double> toMicros) |
String |
toString() |
long |
totalCount() |
public Histogram()
public Histogram(int powersOf2,
int fractionBits)
public Histogram(int powersOf2,
int fractionBits,
double minValue)
@NotNull public static Histogram timeMicros()
public void init(int powersOf2,
int fractionBits,
long overRange,
long totalCount,
long floor)
public int fractionBits()
public int powersOf2()
public long overRange()
public int[] sampleCount()
public void add(@NotNull
Histogram h)
public int sample(double time)
public double percentile(double fraction)
public static double[] percentilesFor(long count)
@NotNull public double[] getPercentiles()
@NotNull public double[] getPercentiles(double[] percentileFor)
@NotNull public String toMicrosFormat()
@NotNull public String toMicrosFormat(@NotNull DoubleFunction<Double> toMicros)
@NotNull public String toLongMicrosFormat(@NotNull DoubleFunction<Double> toMicros)
public long totalCount()
public long floor()
public void reset()
public void sampleNanos(long nanos)
sampleNanos in interface NanoSamplerCopyright © 2018. All rights reserved.