cmd/geth, trie: report on trie cache unloads, also add debug log
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user