We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b0b68c commit 9974d9aCopy full SHA for 9974d9a
trie/trie.go
@@ -38,14 +38,14 @@ func init() {
38
// the trie had since process startup. This isn't useful for anything apart from
39
// trie debugging purposes.
40
func CacheMisses() int64 {
41
- return cacheMissCounter.Count()
+ return cacheMissCounter.Snapshot().Count()
42
}
43
44
// CacheUnloads retrieves a global counter measuring the number of cache unloads
45
// the trie did since process startup. This isn't useful for anything apart from
46
47
func CacheUnloads() int64 {
48
- return cacheUnloadCounter.Count()
+ return cacheUnloadCounter.Snapshot().Count()
49
50
51
// LeafCallback is a callback type invoked when a trie operation reaches a leaf
0 commit comments