From 88a593d559d26a91b64178094728fd9ca7c25a2c Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Wed, 19 Oct 2016 17:17:42 +0300 Subject: cmd/geth, trie: report on trie cache unloads, also add debug log --- core/state/statedb.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/state/statedb.go b/core/state/statedb.go index 6a24d2865..ae106e03b 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -564,6 +564,8 @@ func (s *StateDB) Commit() (root common.Hash, err error) { func (s *StateDB) CommitBatch() (root common.Hash, batch ethdb.Batch) { batch = s.db.NewBatch() root, _ = s.commit(batch) + + glog.V(logger.Debug).Infof("Trie cache stats: %d misses, %d unloads", trie.CacheMisses(), trie.CacheUnloads()) return root, batch } -- cgit