DVStartupProfile class

Constructors

DVStartupProfile({int nowMicros()?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
phases → List<DVStartupPhase>
The phases so far, in the order they happened.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
total → Duration
From the start to the last mark.
no setter

Methods

addListener(void listener()) → void
Calls listener whenever a phase is marked.
mark(String name) → void
Records that name has just finished.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
over(Duration budget, {Duration? phaseBudget}) → List<DVStartupFinding>
Everything that went over its budget: each phase over phaseBudget when one is given, and the whole startup over budget.
removeListener(void listener()) → void
reset() → void
Forgets every phase. For a hot restart, and for tests.
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

current → DVStartupProfile
The framework's own profile. Startup happens once, so there is one.
final