MCPcopy Create free account
hub / github.com/freecodexyz/free-code / reportConfigCacheStats

Function reportConfigCacheStats

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

Source from the content-addressed store, hash-verified

907export const CONFIG_WRITE_DISPLAY_THRESHOLD = 20
908
909function reportConfigCacheStats(): void {
910 const total = configCacheHits + configCacheMisses
911 if (total > 0) {
912 logEvent('tengu_config_cache_stats', {
913 cache_hits: configCacheHits,
914 cache_misses: configCacheMisses,
915 hit_rate: configCacheHits / total,
916 })
917 }
918 configCacheHits = 0
919 configCacheMisses = 0
920}
921
922// Register cleanup to report cache stats at session end
923// 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