MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / reportConfigCacheStats

Function reportConfigCacheStats

source code/utils/config.ts:891–902  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

889export const CONFIG_WRITE_DISPLAY_THRESHOLD = 20
890
891function reportConfigCacheStats(): void {
892 const total = configCacheHits + configCacheMisses
893 if (total > 0) {
894 logEvent('tengu_config_cache_stats', {
895 cache_hits: configCacheHits,
896 cache_misses: configCacheMisses,
897 hit_rate: configCacheHits / total,
898 })
899 }
900 configCacheHits = 0
901 configCacheMisses = 0
902}
903
904// Register cleanup to report cache stats at session end
905// 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