Class TpsDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.TpsDebugChart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intFields inherited from class AbstractDebugChart
CHART_HEIGHT, font, LINE_WIDTH, sampleStorage -
Constructor Summary
ConstructorsConstructorDescriptionTpsDebugChart(Font font, SampleStorage sampleStorage, Supplier<Float> msptSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawAdditionalDimensions(GuiGraphics graphics, int bottom, int currentX, int sampleIndex) protected intgetSampleColor(long nanos) protected intgetSampleHeight(double nanos) protected longgetValueForAggregation(int sampleIndex) protected voidrenderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom) protected StringtoDisplayString(double nanos) private static doubletoMilliseconds(double nanos) Methods inherited from class AbstractDebugChart
drawChart, drawDimensions, drawMainDimension, drawStringWithShade, getFullHeight, getSampleColor, getWidth
-
Field Details
-
TICK_METHOD_COLOR
private static final int TICK_METHOD_COLOR- See Also:
-
TASK_COLOR
private static final int TASK_COLOR- See Also:
-
OTHER_COLOR
private static final int OTHER_COLOR- See Also:
-
msptSupplier
-
-
Constructor Details
-
TpsDebugChart
-
-
Method Details
-
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom) - Overrides:
renderAdditionalLinesAndLabelsin classAbstractDebugChart
-
drawAdditionalDimensions
protected void drawAdditionalDimensions(GuiGraphics graphics, int bottom, int currentX, int sampleIndex) - Overrides:
drawAdditionalDimensionsin classAbstractDebugChart
-
getValueForAggregation
protected long getValueForAggregation(int sampleIndex) - Overrides:
getValueForAggregationin classAbstractDebugChart
-
toDisplayString
- Specified by:
toDisplayStringin classAbstractDebugChart
-
getSampleHeight
protected int getSampleHeight(double nanos) - Specified by:
getSampleHeightin classAbstractDebugChart
-
getSampleColor
protected int getSampleColor(long nanos) - Specified by:
getSampleColorin classAbstractDebugChart
-
toMilliseconds
private static double toMilliseconds(double nanos)
-