ResetSuggestionCacheStats zeroes all hit, miss, and eviction counters in the keyword suggestion cache without clearing cached entries. Call this at the start of a benchmark or monitoring interval to obtain a clean measurement window.
()
| 176 | // keyword suggestion cache without clearing cached entries. Call this at the start |
| 177 | // of a benchmark or monitoring interval to obtain a clean measurement window. |
| 178 | func ResetSuggestionCacheStats() { |
| 179 | atomic.StoreUint64(&suggestionCache.hits, 0) |
| 180 | atomic.StoreUint64(&suggestionCache.misses, 0) |
| 181 | atomic.StoreUint64(&suggestionCache.evictions, 0) |
| 182 | } |
no outgoing calls