MCPcopy
hub / github.com/codeaashu/claude-code / reportConfigCacheStats

Function reportConfigCacheStats

src/utils/config.ts:889–900  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

887export const CONFIG_WRITE_DISPLAY_THRESHOLD = 20
888
889function reportConfigCacheStats(): void {
890 const total = configCacheHits + configCacheMisses
891 if (total > 0) {
892 logEvent('tengu_config_cache_stats', {
893 cache_hits: configCacheHits,
894 cache_misses: configCacheMisses,
895 hit_rate: configCacheHits / total,
896 })
897 }
898 configCacheHits = 0
899 configCacheMisses = 0
900}
901
902// Register cleanup to report cache stats at session end
903// eslint-disable-next-line custom-rules/no-top-level-side-effects

Callers 1

config.tsFile · 0.85

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected