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

Function reportConfigCacheStats

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

Source from the content-addressed store, hash-verified

961export const CONFIG_WRITE_DISPLAY_THRESHOLD = 20
962
963function reportConfigCacheStats(): void {
964 const total = configCacheHits + configCacheMisses
965 if (total > 0) {
966 logEvent('ncode_config_cache_stats', {
967 cache_hits: configCacheHits,
968 cache_misses: configCacheMisses,
969 hit_rate: configCacheHits / total,
970 })
971 }
972 configCacheHits = 0
973 configCacheMisses = 0
974}
975
976// Register cleanup to report cache stats at session end
977// eslint-disable-next-line custom-rules/no-top-level-side-effects

Callers 1

config.tsFile · 0.85

Calls 1

logEventFunction · 0.50

Tested by

no test coverage detected