CodexTotals class

Aggregate token + runtime totals tracked by the scheduler across all runs.

Constructors

CodexTotals({int inputTokens = 0, int outputTokens = 0, int totalTokens = 0, double secondsRunning = 0})
Creates a totals counter.

Properties

hashCode int
The hash code for this object.
no setterinherited
inputTokens int
Total input tokens consumed.
getter/setter pair
outputTokens int
Total output tokens consumed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondsRunning double
Cumulative seconds across ended sessions (running sessions are added live when producing snapshots).
getter/setter pair
totalTokens int
Total tokens consumed.
getter/setter pair

Methods

addEndedSession(Duration elapsed) → void
Adds elapsed seconds for an ended session.
addUsage({int inputTokens = 0, int outputTokens = 0, int totalTokens = 0}) → void
Adds an isolated delta to the totals.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
JSON view used by snapshots.
toString() String
A string representation of this object.
inherited

Operators

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