SceneBudget class

The frame-time ceilings one benchmark scene must stay under.

Values are milliseconds, matching FrameTimeStats.toJson's units, so a budget and a report line up field-for-field without a unit conversion in between -- one more place a regression could otherwise hide.

Annotations

Constructors

SceneBudget({required String sceneId, required double rasterP90Ms, required double rasterP99Ms, required double buildP90Ms})
Creates a budget.
const
SceneBudget.fromJson(Map<String, Object?> json)
Reads a budget from a decoded JSON object.
factory

Properties

buildP90Ms → double
Ceiling for UI-thread build p90, in milliseconds.
final
hashCode → int
The hash code for this object.
no setterinherited
rasterP90Ms → double
Ceiling for raster-thread p90, in milliseconds.
final
rasterP99Ms → double
Ceiling for raster-thread p99, in milliseconds.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sceneId → String
The BenchmarkScene.id this budget applies to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
This budget as a JSON-encodable map.
toString() → String
A string representation of this object.
inherited

Operators

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