diff options
Diffstat (limited to 'trie')
-rw-r--r-- | trie/trie.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trie/trie.go b/trie/trie.go index 2a7bc16e4..035a80e74 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -47,6 +47,13 @@ func CacheMisses() int64 { return cacheMissCounter.Count() } +// CacheUnloads retrieves a global counter measuring the number of cache unloads +// the trie did since process startup. This isn't useful for anything apart from +// trie debugging purposes. +func CacheUnloads() int64 { + return cacheUnloadCounter.Count() +} + func init() { sha3.NewKeccak256().Sum(emptyState[:0]) } |