FpsMonitor class

FPS 采集器,开始采集时调用 startScene,停止采集时调用 stopScene 默认情况下,框架会在route push 和 pop自动进行 start和stop, 所以当统计页面级的FPS时,无需手动调用startScene 和 StopScene 内部注册了 WidgetsBindingObserver, 在 resumed 和 paused 状态时,分别调用 onAppLifecycleResumedonAppLifecyclePaused

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tracingMonitors Map<String, SceneFpsMonitor>
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAppLifecyclePaused() → void
onAppLifecycleResumed() → void
startScene(String scene, {Duration? timeout}) → void
stopScene(String scene) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FpsMonitor
no setter