MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / addUsage

Function addUsage

apps/vis/web/src/lib/analysis.ts:172–177  ·  view source on GitHub ↗
(into: TokenUsage, u: TokenUsage)

Source from the content-addressed store, hash-verified

170const IDLE_GAP_MS = 3000;
171
172function addUsage(into: TokenUsage, u: TokenUsage): void {
173 into.inputOther += u.inputOther;
174 into.output += u.output;
175 into.inputCacheRead += u.inputCacheRead;
176 into.inputCacheCreation += u.inputCacheCreation;
177}
178
179function usageTotal(u: TokenUsage): number {
180 return u.inputOther + u.output + u.inputCacheRead + u.inputCacheCreation;

Callers 1

analyzeWireFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected