PerformanceStatisticsOptions class
Options for the following statistics collection behaviors:
- Specify the types of sampling: cumulative, per-frame, or both.
- Define the minimum elapsed time for collecting performance samples.
Constructors
-
PerformanceStatisticsOptions.new({required List<
PerformanceSamplerOptions> samplerOptions, required double samplingDurationMillis})
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
samplerOptions
↔ List<
PerformanceSamplerOptions> -
List of optional samplers to be used to collect performance statistics.
getter/setter pair
- samplingDurationMillis ↔ double
-
The minimum elapsed time required before performance statistics become available.
It's important to note that the actual collection interval may exceed this duration since statistics are aggregated during render calls.
The effective collection interval can be observed through the
PerformanceStatistics
instance. SettingsamplingDurationMillis
to 0 forces the collection of performance statistics every frame.getter/setter pair
Methods
-
encode(
) → Object -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
decode(
Object result) → PerformanceStatisticsOptions