Skip to content

Commit d2f4e54

Browse files
committed
core: polish
1 parent 0eef7ef commit d2f4e54

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

core/blockchain_stats.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,21 @@ Block: %v (%#x) txs: %d, mgasps: %.2f
111111
112112
EVM execution: %v
113113
Validation: %v
114+
Account read: %v(%d)
115+
Storage read: %v(%d)
116+
State hash: %v
114117
DB commit: %v
115118
Block write: %v
116-
Account read: %v
117-
Storage read: %v
118-
State hash: %v
119119
Total: %v
120120
121121
State read cache: %s
122-
123122
##############################
124123
`, block.Number(), block.Hash(), len(block.Transactions()), s.MgasPerSecond,
125-
common.PrettyDuration(s.Execution), common.PrettyDuration(s.Validation+s.CrossValidation), common.PrettyDuration(s.TrieDBCommit+s.SnapshotCommit),
126-
common.PrettyDuration(s.BlockWrite), common.PrettyDuration(s.AccountReads), common.PrettyDuration(s.StorageReads),
127-
common.PrettyDuration(s.AccountHashes+s.AccountCommits+s.AccountUpdates+s.StorageCommits+s.StorageUpdates), common.PrettyDuration(s.TotalTime),
128-
s.StateReadCacheStats)
124+
common.PrettyDuration(s.Execution), common.PrettyDuration(s.Validation+s.CrossValidation),
125+
common.PrettyDuration(s.AccountReads), s.AccountLoaded,
126+
common.PrettyDuration(s.StorageReads), s.StorageLoaded,
127+
common.PrettyDuration(s.AccountHashes+s.AccountCommits+s.AccountUpdates+s.StorageCommits+s.StorageUpdates),
128+
common.PrettyDuration(s.TrieDBCommit+s.SnapshotCommit), common.PrettyDuration(s.BlockWrite),
129+
common.PrettyDuration(s.TotalTime), s.StateReadCacheStats)
129130
log.Info(msg)
130131
}

0 commit comments

Comments
 (0)