BenchmarkBudgets class

The full set of committed per-scene budgets, keyed by scene id.

Loaded from a checked-in JSON file rather than hard-coded, so tightening or relaxing a budget is a reviewable diff to data, not a change buried in the harness's own source -- the whole point of a "regression gate" is that changing what counts as a regression has to go through review too.

Annotations

Constructors

BenchmarkBudgets(Map<String, SceneBudget> _budgets)
Creates a budget set directly. Prefer BenchmarkBudgets.fromJsonString when reading budgets.json.
const
BenchmarkBudgets.fromJsonString(String source)
Parses the checked-in budgets file.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sceneIds → Iterable<String>
Every scene id with a committed budget.
no setter

Methods

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.
inherited
operator [](String sceneId) → SceneBudget?
The budget for sceneId, or null if none is committed yet.