SystemProfiler class final
Collects system timings by schedule.
Constructors
- SystemProfiler({Duration? slowSystemThreshold, void onSlowSystem(SlowSystemEvent event)?})
Properties
- frame → int
-
The current frame number (advanced by beginFrame).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- onSlowSystem → void Function(SlowSystemEvent event)?
-
Called when a run exceeds the slow-system threshold (if both are set).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slowSystemThreshold → Duration?
-
The configured slow-system threshold, if any.
no setter
- stopwatch → Stopwatch
-
A single reused stopwatch; the schedule resets and reads it per system.
final
-
timings
→ Iterable<
SystemTiming> -
All recorded (system, schedule) timings (live view; do not mutate).
no setter
Methods
-
beginFrame(
) → void - Advances the frame counter. Called once per frame by the integration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
SystemLabel label, ScheduleLabel schedule, int micros) → void -
Records one run of
label(inschedule) that tookmicrosmicroseconds. Reuses the per-(system, schedule) SystemTiming record. -
reset(
) → void - Clears all accumulated timings and resets the frame counter.
-
timingOf(
SystemLabel system, ScheduleLabel schedule) → SystemTiming? -
The timing record for
systeminschedule, or null if that pair has not run yet. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited