FrameMonitor class

Engine that monitors Flutter engine frame scheduling, rendering timings, and jank.

Constructors

FrameMonitor({required AppInspectorStore store, double? targetFpsOverride, double jankThresholdMultiplier = 1.2, int maxFrameHistory = 120})
Creates a new FrameMonitor.

Properties

frameBudgetMs double
Expected target frame budget in milliseconds.
no setter
hashCode int
The hash code for this object.
no setterinherited
isMonitoring bool
Whether frame monitoring is actively running.
no setter
jankThresholdMs double
Jank threshold limit in milliseconds.
no setter
jankThresholdMultiplier double
final
maxFrameHistory int
final
refreshRate double
Target refresh rate in Hz.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
store AppInspectorStore
final
targetFpsOverride double?
final

Methods

getSnapshot() FrameMetricsSnapshot
Extracts snapshot metrics for display or telemetry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets accumulated frame metrics.
start() → void
Starts frame timing collection via WidgetsBinding.instance.addTimingsCallback.
stop() → void
Stops frame timing collection.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited