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

Function cacheStats

apps/vis/web/src/lib/analysis.ts:484–493  ·  view source on GitHub ↗
(c: TokenUsage)

Source from the content-addressed store, hash-verified

482}
483
484function cacheStats(c: TokenUsage): CacheStats {
485 const inputTotal = c.inputOther + c.inputCacheRead + c.inputCacheCreation;
486 return {
487 inputOther: c.inputOther,
488 inputCacheRead: c.inputCacheRead,
489 inputCacheCreation: c.inputCacheCreation,
490 output: c.output,
491 hitRate: inputTotal > 0 ? c.inputCacheRead / inputTotal : null,
492 };
493}

Callers 1

analyzeWireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected