diff options
author | Felix Lange <fjl@twurst.com> | 2016-10-19 22:07:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 22:07:19 +0800 |
commit | 5d9bb0a050df0e58ed1073ef92f45676380ac26e (patch) | |
tree | ef6d03e8150fe2a1dc00adb99baf2abf0a5e108c /trie/hasher.go | |
parent | 8048f4d4f619e3d34494fb9dcb2bb3b91bca6bec (diff) | |
download | dexon-5d9bb0a050df0e58ed1073ef92f45676380ac26e.tar.gz dexon-5d9bb0a050df0e58ed1073ef92f45676380ac26e.tar.zst dexon-5d9bb0a050df0e58ed1073ef92f45676380ac26e.zip |
trie: add metric to track cache unloading (#3175)
Diffstat (limited to 'trie/hasher.go')
-rw-r--r-- | trie/hasher.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |