SceneFpsMonitor class

具体Scene的FpsMonitor

Constructors

SceneFpsMonitor(String sceneName, {@visibleForTesting TimeTracer? mockTimeTracer, @visibleForTesting FpsReporter? mockFpsReporter})
sceneName用来区分上报的场景

Properties

hashCode int
The hash code for this object.
no setterinherited
mockFpsReporter FpsReporter?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sceneName String
上报的场景信息
final
timer Timer?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start({Duration? timeout}) → void
开始采集,一般在开始滑动时调用 这里的超时 定义为:调用start后,stop前,每 timeout 时间会取一次丢帧序列
stop() → void
结束采集,一般在滑动结束时调用
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

debug bool
getter/setter pair
enableSkipFrame bool
getter/setter pair