aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-10-19 22:07:19 +0800
committerGitHub <noreply@github.com>2016-10-19 22:07:19 +0800
commit5d9bb0a050df0e58ed1073ef92f45676380ac26e (patch)
treeef6d03e8150fe2a1dc00adb99baf2abf0a5e108c /trie/trie.go
parent8048f4d4f619e3d34494fb9dcb2bb3b91bca6bec (diff)
downloaddexon-5d9bb0a050df0e58ed1073ef92f45676380ac26e.tar.gz
dexon-5d9bb0a050df0e58ed1073ef92f45676380ac26e.tar.zst
dexon-5d9bb0a050df0e58ed1073ef92f45676380ac26e.zip
trie: add metric to track cache unloading (#3175)
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