From 5d9bb0a050df0e58ed1073ef92f45676380ac26e Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 19 Oct 2016 16:07:19 +0200 Subject: trie: add metric to track cache unloading (#3175) --- trie/trie.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'trie/trie.go') 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 -- cgit