Class DiscreteValueRecorder
java.lang.Object
com.hypixel.hytale.common.benchmark.DiscreteValueRecorder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidformatHeader(Formatter formatter) voidformatHeader(Formatter formatter, String columnFormatHeader) voidformatValues(Formatter formatter) voidformatValues(Formatter formatter, String columnFormatValue) longlonggetAverage(long def) longgetCount()longlonggetMaxValue(long def) longlonggetMinValue(long def) voidrecord(long value) voidreset()toString()
-
Field Details
-
DEFAULT_COLUMN_SEPARATOR
- See Also:
-
DEFAULT_COLUMN_FORMAT_HEADER
- See Also:
-
DEFAULT_COLUMN_FORMAT_VALUE
- See Also:
-
DEFAULT_COLUMNS
-
minValue
protected long minValue -
maxValue
protected long maxValue -
sumValues
protected long sumValues -
count
protected long count
-
-
Constructor Details
-
DiscreteValueRecorder
public DiscreteValueRecorder()
-
-
Method Details
-
reset
public void reset() -
getMinValue
public long getMinValue(long def) -
getMinValue
public long getMinValue() -
getMaxValue
public long getMaxValue(long def) -
getMaxValue
public long getMaxValue() -
getCount
public long getCount() -
getAverage
public long getAverage(long def) -
getAverage
public long getAverage() -
record
public void record(long value) -
toString
-
formatHeader
-
formatHeader
-
formatValues
-
formatValues
-