aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie.go
diff options
context:
space:
mode:
Diffstat (limited to 'trie/trie.go')
-rw-r--r--trie/trie.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/trie/trie.go b/trie/trie.go
index 632060543..2a7bc16e4 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -35,7 +35,10 @@ var (
emptyState common.Hash
)
-var cacheMissCounter = metrics.NewRegisteredCounter("trie/cachemiss", nil)
+var (
+ cacheMissCounter = metrics.NewRegisteredCounter("trie/cachemiss", nil)
+ cacheUnloadCounter = metrics.NewRegisteredCounter("trie/cacheunload", nil)
+)
// CacheMisses retrieves a global counter measuring the number of cache misses
// the trie did since process startup. This isn't useful for anything apart from