- All Superinterfaces:
- Wrapper
Snapshot in time of a histogram.
- 
Method SummaryModifier and TypeMethodDescriptionlongcount()Returns the count of observations in the snapshot.static HistogramSnapshotempty(long count, double total, double max) Returns an "empty" snapshot which has summary values but no data points.Returns information about each of the configured buckets for the histogram.doublemax()Returns the maximum value over all observations.doublemean()Returns the average value overall observations.doubleReturns the average value over all observations, interpreting the values as times in nanoseconds and expressing the average in the specifiedTimeUnit.voidoutputSummary(PrintStream out, double scale) Dumps a summary of the snapshot to the specifiedPrintStreamusing the indicated scaling factor for observations.Iterable<? extends ValueAtPercentile> Returns the values at the configured percentiles for the histogram.doubletotal()Returns the total value over all observations in the snapshot.doubleReturns the total value over all observations, interpreting the values as times in nanoseconds and expressing the time in the specifiedTimeUnit.
- 
Method Details- 
emptyReturns an "empty" snapshot which has summary values but no data points.- Parameters:
- count- count of observations the snapshot should report
- total- total value of observations the snapshot should report
- max- maximum value the snapshot should report
- Returns:
- empty snapshot reporting the values as specified
 
- 
countlong count()Returns the count of observations in the snapshot.- Returns:
- count of observations
 
- 
totaldouble total()Returns the total value over all observations in the snapshot.- Returns:
- total value over all observations
 
- 
totalReturns the total value over all observations, interpreting the values as times in nanoseconds and expressing the time in the specifiedTimeUnit.- Parameters:
- timeUnit- time unit in which to express the total value
- Returns:
- total value expressed in the selected time unit
 
- 
maxdouble max()Returns the maximum value over all observations.- Returns:
- maximum value
 
- 
meandouble mean()Returns the average value overall observations.- Returns:
- average value
 
- 
meanReturns the average value over all observations, interpreting the values as times in nanoseconds and expressing the average in the specifiedTimeUnit.- Parameters:
- timeUnit- time unitin which to express the average
- Returns:
- average value expressed in the selected time unit
 
- 
percentileValuesIterable<? extends ValueAtPercentile> percentileValues()Returns the values at the configured percentiles for the histogram.- Returns:
- pairs of percentile and the histogram value at that percentile
 
- 
histogramCountsReturns information about each of the configured buckets for the histogram.- Returns:
- pairs of boundary value and count of observations in that boundary
 
- 
outputSummaryDumps a summary of the snapshot to the specifiedPrintStreamusing the indicated scaling factor for observations.- Parameters:
- out-- PrintStreamto which to dump the snapshot summary
- scale- scale factor to apply to observations for output
 
 
-