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/hasher.go | 1 + 1 file changed, 1 insertion(+) (limited to 'trie/hasher.go') diff --git a/trie/hasher.go b/trie/hasher.go index b6223bf32..e6261819c 100644 --- a/trie/hasher.go +++ b/trie/hasher.go @@ -60,6 +60,7 @@ func (h *hasher) hash(n node, db DatabaseWriter, force bool) (node, node, error) if n.canUnload(h.cachegen, h.cachelimit) { // Unload the node from cache. All of its subnodes will have a lower or equal // cache generation number. + cacheUnloadCounter.Inc(1) return hash, hash, nil } if !dirty { -- cgit