Basics
Guides
API Reference
Basics
Guides
API Reference
[21:7] extends: MDIWindow
Wraps FXGL's ProfilerWindow (com.almasb.fxgl.dev.profiling.ProfilerWindow), an MDIWindow subclass that renders a rolling line chart of a single double-valued metric. The window tracks min, max, average, and an "all-time" min / max for logging at engine exit. Each window is fixed-size, closeable false, minimizable true, movable true. Game code can construct one to host a custom metric, then add the underlying MDIWindow to a scene overlay.
ProfilerWindow (Width = null, double Height = 0.0, string Title = "")
Creates a new ProfilerWindow of the given size and title. Pass null for Width to construct an empty wrapper for adopt.
Width is the chart width in pixels, or null.Height is the chart height in pixels.Title is the window title.adopt (object Ajo)
Wraps an existing ProfilerWindow AussomJavaObject.
Ajo is an AussomJavaObject around a ProfilerWindow.A new wrapper.getMeasuringUnitsName ()
Returns the units string shown alongside the value label.
A string.setMeasuringUnitsName (string Name)
Sets the units string shown alongside the value label.
Name is the units string.this objectgetNumYTicks ()
Returns the number of Y-axis tick marks.
An int.setNumYTicks (int Ticks)
Sets the number of Y-axis tick marks.
Ticks is the new tick count.this objectgetDurationX ()
Returns the X-axis duration in seconds the chart is tracking.
A double.setDurationX (double Duration)
Sets the X-axis tracking duration in seconds.
Duration is the new duration.this objectgetMaxBufferSize ()
Returns the maximum buffer size for stored values.
An int.setMaxBufferSize (int Size)
Sets the maximum buffer size for stored values.
Size is the new size.this objectgetPreferredMaxValue ()
Returns the preferred-max threshold. When the current value stays below this for 300 updates, the chart's max-value resets to this preferred max.
A double.setPreferredMaxValue (double Value)
Sets the preferred-max threshold.
Value is the new preferred max.this objectgetMinValue ()
Returns the lowest value seen since the chart started.
A double.setMinValue (double Value)
Sets the chart's tracked minimum value.
Value is the new minimum.this objectgetCurValue ()
Returns the most recent value pushed via update.
A double.setCurValue (double Value)
Sets the chart's current value.
Value is the new current value.this objectgetMaxValue ()
Returns the highest value seen since the chart started.
A double.setMaxValue (double Value)
Sets the chart's tracked maximum value.
Value is the new maximum.this objectgetBgColor ()
Returns the background color.
An AussomJavaObject around a Color.setBgColor (object ColorObj)
Sets the background color.
ColorObj is a Color wrapper.this objectgetTextColor ()
Returns the tick-label text color.
An AussomJavaObject around a Color.setTextColor (object ColorObj)
Sets the tick-label text color.
ColorObj is a Color wrapper.this objectgetChartColor ()
Returns the chart line color.
An AussomJavaObject around a Color.setChartColor (object ColorObj)
Sets the chart line color.
ColorObj is a Color wrapper.this objectupdate (double Value)
Pushes a new value, updates running stats and re-paints the chart.
Value is the new sample value.this objectlog ()
Logs the chart's frame count, average, all-time low, and all-time high to the FXGL logger.
this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.