Package org.polyfrost.polyui.utils
Class Debugger
-
- All Implemented Interfaces:
public final class Debuggerthe debug utilities for PolyUI.
Contains various methods for performance monitoring, debugging component, printing state and more.
- Since:
1.1.7
-
-
Field Summary
Fields Modifier and Type Field Description private final Integerfpsprivate final DoublelongestFrameprivate final DoubleshortestFrameprivate final DoubleavgFrame
-
Method Summary
Modifier and Type Method Description final IntegergetFps()final DoublegetLongestFrame()final DoublegetShortestFrame()final DoublegetAvgFrame()final UnittakeReadings()final Unitrender()final StringdebugString()return a string of this PolyUI instance's components and children in a list, like this: PolyUI(800.0 x 800.0) with 0 components and 2 layouts: PixelLayout@5bcab519 [Draggable](20.0x570.0, 540.0 x 150.0) Text@6eebc39e(40.0x570.0, 520.0x32.0) Block@2f686d1f(40.0x600.0, 120.0x120.0) Block@7085bdee(220.0x600.0, 120.0x120.0) Image@6fd02e5(400.0x600.0, 120.0x120.0 (auto)) ... 2 more FlexLayout@73846619 [Scrollable](20.0x30.0, 693.73267 x 409.47168, buffered, needsRedraw) Block@32e6e9c3(20.0x30.0, 61.111263x42.21167) Block@5056dfcb(86.11127x30.0, 40.909004x76.32132) Block@6574b225(132.02026x30.0, 52.75415x52.59597) Block@2669b199(189.77441x30.0, 76.59671x45.275665)final UnitopenDebugWindow(Component d)-
-
Constructor Detail
-
Debugger
Debugger(PolyUI polyUI)
-
-
Method Detail
-
getLongestFrame
final Double getLongestFrame()
-
getShortestFrame
final Double getShortestFrame()
-
getAvgFrame
final Double getAvgFrame()
-
takeReadings
@ApiStatus.Internal() final Unit takeReadings()
-
debugString
final String debugString()
return a string of this PolyUI instance's components and children in a list, like this:
PolyUI(800.0 x 800.0) with 0 components and 2 layouts: PixelLayout@5bcab519 [Draggable](20.0x570.0, 540.0 x 150.0) Text@6eebc39e(40.0x570.0, 520.0x32.0) Block@2f686d1f(40.0x600.0, 120.0x120.0) Block@7085bdee(220.0x600.0, 120.0x120.0) Image@6fd02e5(400.0x600.0, 120.0x120.0 (auto)) ... 2 more FlexLayout@73846619 [Scrollable](20.0x30.0, 693.73267 x 409.47168, buffered, needsRedraw) Block@32e6e9c3(20.0x30.0, 61.111263x42.21167) Block@5056dfcb(86.11127x30.0, 40.909004x76.32132) Block@6574b225(132.02026x30.0, 52.75415x52.59597) Block@2669b199(189.77441x30.0, 76.59671x45.275665)
-
openDebugWindow
final Unit openDebugWindow(Component d)
-
-
-
-