public class HDRReservoir
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HDRReservoir.HDRSnapshot
A specialized snapshot that contains both the "total" histogram (since start),
and the one collected since
getSnapshot was last called. |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
REPORT_SNAPSHOT_HISTOGRAM
Indicates that the snapshot histogram should be reported.
|
static boolean |
REPORT_TOTAL_HISTOGRAM
Indicates that the total histogram should be reported.
|
| Constructor and Description |
|---|
HDRReservoir(int numberOfSignificantValueDigits,
boolean reportTotalHistogram)
Creates a HDR histogram.
|
HDRReservoir(long highestTrackableValue,
int numberOfSignificantValueDigits,
boolean reportTotalHistogram)
Creates a HDR histogram.
|
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
getSnapshot() |
int |
size() |
void |
update(long value) |
public static final boolean REPORT_TOTAL_HISTOGRAM
public static final boolean REPORT_SNAPSHOT_HISTOGRAM
public HDRReservoir(int numberOfSignificantValueDigits,
boolean reportTotalHistogram)
numberOfSignificantValueDigits - The number of significant digits in the value.reportTotalHistogram - If true, the long-running histogram will be reported. Otherwise, the histogram
collected since the last snapshot was acquired will be reported.public HDRReservoir(long highestTrackableValue,
int numberOfSignificantValueDigits,
boolean reportTotalHistogram)
highestTrackableValue - The highest value tracked. Anything larger will be set to the maximum.numberOfSignificantValueDigits - The number of significant digits in the value.reportTotalHistogram - If true, the long-running histogram will be reported. Otherwise, the histogram
collected since the last snapshot was acquired will be reported.