EventTimestampTracker class

Bounded timestamp map for RecordWithTiming API. Tracks event timestamps for duration calculations. Uses insertion-order eviction via LinkedHashMap for O(1) eviction.

Constructors

EventTimestampTracker()

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

getTimestamp(String eventName) int?
Get the timestamp for an event name, or null if not tracked.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String eventName) → void
Remove a tracked timestamp.
toString() String
A string representation of this object.
inherited
trackTimestamp(String eventName, int tsMillis) → void
Record a timestamp for an event name.

Operators

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