StreamTrace class final

One active trace per process: a stopwatch, a sequence counter, and the last-mark timestamp so each line can name its own gap.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(StreamTraceMark m, [String detail = '']) → void
Records one mark: elapsed ms, the gap since the previous mark, the sequence number, and detail. Dropped after stop.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

active → StreamTrace?
The currently active trace, if a host started one.
no setter

Static Methods

mark(StreamTraceMark m, [String detail = '']) → void
Records one mark on the active trace — a no-op when none is active.
start(StreamTraceSink sink) → StreamTrace
Starts tracing into sink, replacing any previous trace, and returns it.
stop() → void
Stops and clears the active trace. Marks after this are dropped.