Class TimeDistributionRecorder
java.lang.Object
com.hypixel.hytale.common.benchmark.ContinuousValueRecorder
com.hypixel.hytale.common.benchmark.TimeRecorder
com.hypixel.hytale.common.benchmark.TimeDistributionRecorder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected long[]Fields inherited from class com.hypixel.hytale.common.benchmark.TimeRecorder
DEFAULT_COLUMN_FORMAT_HEADER, DEFAULT_COLUMN_FORMAT_VALUE, DEFAULT_COLUMN_SEPARATOR, DEFAULT_COLUMNS, NANOS_TO_SECONDSFields inherited from class com.hypixel.hytale.common.benchmark.ContinuousValueRecorder
count, maxValue, minValue, sumValues -
Constructor Summary
ConstructorsConstructorDescriptionTimeDistributionRecorder(double maxSecs, double minSecs) TimeDistributionRecorder(double maxSecs, double minSecs, int logSteps) -
Method Summary
Modifier and TypeMethodDescriptionvoidformatHeader(Formatter formatter, String columnFormatHeader) voidformatValues(Formatter formatter, long normalValue) voidformatValues(Formatter formatter, long normalValue, String columnFormatValue) voidformatValues(Formatter formatter, String columnFormatValue) longget(int index) doubleindexToTime(int index) doublerecordNanos(long nanos) voidreset()intsize()inttimeToIndex(double secs) toString()Methods inherited from class com.hypixel.hytale.common.benchmark.TimeRecorder
end, format, formatHeader, formatTime, formatValues, startMethods inherited from class com.hypixel.hytale.common.benchmark.ContinuousValueRecorder
getAverage, getAverage, getCount, getMaxValue, getMaxValue, getMinValue, getMinValue, record
-
Field Details
-
minLogRange
protected int minLogRange -
maxLogRange
protected int maxLogRange -
logSteps
protected int logSteps -
valueBins
protected long[] valueBins
-
-
Constructor Details
-
TimeDistributionRecorder
public TimeDistributionRecorder(double maxSecs, double minSecs, int logSteps) -
TimeDistributionRecorder
public TimeDistributionRecorder(double maxSecs, double minSecs) -
TimeDistributionRecorder
public TimeDistributionRecorder()
-
-
Method Details
-
reset
public void reset()- Overrides:
resetin classContinuousValueRecorder
-
recordNanos
public double recordNanos(long nanos) - Overrides:
recordNanosin classTimeRecorder
-
timeToIndex
public int timeToIndex(double secs) -
indexToTime
public double indexToTime(int index) -
size
public int size() -
get
public long get(int index) -
toString
- Overrides:
toStringin classTimeRecorder
-
formatHeader
- Overrides:
formatHeaderin classTimeRecorder
-
formatValues
- Overrides:
formatValuesin classTimeRecorder
-
formatValues
-
formatValues
-