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 voidextractAdditionalLinesAndLabels(GuiGraphicsExtractor graphics, int left, int width, int bottom) protected voidextractAdditionalSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) protected intgetSampleColor(long nanos) protected intgetSampleHeight(double nanos) protected longgetValueForAggregation(int sampleIndex) protected StringtoDisplayString(double nanos) private static doubletoMilliseconds(double nanos) Methods inherited from class AbstractDebugChart
extractMainSampleBar, extractRenderState, extractSampleBars, extractStringWithShade, 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
-
extractAdditionalLinesAndLabels
protected void extractAdditionalLinesAndLabels(GuiGraphicsExtractor graphics, int left, int width, int bottom) - Overrides:
extractAdditionalLinesAndLabelsin classAbstractDebugChart
-
extractAdditionalSampleBars
protected void extractAdditionalSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) - Overrides:
extractAdditionalSampleBarsin 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)
-