mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core: remove accountHashWait
This commit is contained in:
parent
97b516bb89
commit
df53e28fcd
3 changed files with 13 additions and 17 deletions
|
|
@ -2158,7 +2158,6 @@ func (bc *BlockChain) ProcessBlock(parentRoot common.Hash, block *types.Block, s
|
||||||
stats.AccountReads = statedb.AccountReads // Account reads are complete(in processing)
|
stats.AccountReads = statedb.AccountReads // Account reads are complete(in processing)
|
||||||
stats.StorageReads = statedb.StorageReads // Storage reads are complete(in processing)
|
stats.StorageReads = statedb.StorageReads // Storage reads are complete(in processing)
|
||||||
stats.AccountUpdates = statedb.AccountUpdates // Account updates are complete(in validation)
|
stats.AccountUpdates = statedb.AccountUpdates // Account updates are complete(in validation)
|
||||||
stats.AccountUpdateWait = statedb.AccountUpdateWait
|
|
||||||
stats.StorageUpdates = statedb.StorageUpdates // Storage updates are complete(in validation)
|
stats.StorageUpdates = statedb.StorageUpdates // Storage updates are complete(in validation)
|
||||||
stats.AccountHashes = statedb.AccountHashes // Account hashes are complete(in validation)
|
stats.AccountHashes = statedb.AccountHashes // Account hashes are complete(in validation)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ type ExecuteStats struct {
|
||||||
StorageReads time.Duration // Time spent on the storage reads
|
StorageReads time.Duration // Time spent on the storage reads
|
||||||
AccountHashes time.Duration // Time spent on the account trie hash
|
AccountHashes time.Duration // Time spent on the account trie hash
|
||||||
AccountUpdates time.Duration // Time spent on the account trie update
|
AccountUpdates time.Duration // Time spent on the account trie update
|
||||||
AccountUpdateWait time.Duration // Time spent on waiting the account trie from prefetching
|
|
||||||
AccountCommits time.Duration // Time spent on the account trie commit
|
AccountCommits time.Duration // Time spent on the account trie commit
|
||||||
StorageUpdates time.Duration // Time spent on the storage trie update
|
StorageUpdates time.Duration // Time spent on the storage trie update
|
||||||
StorageCommits time.Duration // Time spent on the storage trie commit
|
StorageCommits time.Duration // Time spent on the storage trie commit
|
||||||
|
|
@ -115,7 +114,7 @@ EVM execution: %v
|
||||||
Validation: %v
|
Validation: %v
|
||||||
Account read: %v(%d)
|
Account read: %v(%d)
|
||||||
Storage read: %v(%d)
|
Storage read: %v(%d)
|
||||||
Account hash: %v(wait=%v)
|
Account hash: %v
|
||||||
Storage hash: %v
|
Storage hash: %v
|
||||||
DB commit: %v
|
DB commit: %v
|
||||||
Block write: %v
|
Block write: %v
|
||||||
|
|
@ -127,7 +126,7 @@ Total: %v
|
||||||
common.PrettyDuration(s.Execution), common.PrettyDuration(s.Validation+s.CrossValidation),
|
common.PrettyDuration(s.Execution), common.PrettyDuration(s.Validation+s.CrossValidation),
|
||||||
common.PrettyDuration(s.AccountReads), s.AccountLoaded,
|
common.PrettyDuration(s.AccountReads), s.AccountLoaded,
|
||||||
common.PrettyDuration(s.StorageReads), s.StorageLoaded,
|
common.PrettyDuration(s.StorageReads), s.StorageLoaded,
|
||||||
common.PrettyDuration(s.AccountHashes+s.AccountCommits+s.AccountUpdates), common.PrettyDuration(s.AccountUpdateWait),
|
common.PrettyDuration(s.AccountHashes+s.AccountCommits+s.AccountUpdates),
|
||||||
common.PrettyDuration(s.StorageCommits+s.StorageUpdates),
|
common.PrettyDuration(s.StorageCommits+s.StorageUpdates),
|
||||||
common.PrettyDuration(s.TrieDBCommit+s.SnapshotCommit), common.PrettyDuration(s.BlockWrite),
|
common.PrettyDuration(s.TrieDBCommit+s.SnapshotCommit), common.PrettyDuration(s.BlockWrite),
|
||||||
common.PrettyDuration(s.TotalTime), s.StateReadCacheStats)
|
common.PrettyDuration(s.TotalTime), s.StateReadCacheStats)
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,6 @@ type StateDB struct {
|
||||||
AccountHashes time.Duration
|
AccountHashes time.Duration
|
||||||
AccountUpdates time.Duration
|
AccountUpdates time.Duration
|
||||||
AccountCommits time.Duration
|
AccountCommits time.Duration
|
||||||
AccountUpdateWait time.Duration
|
|
||||||
|
|
||||||
StorageReads time.Duration
|
StorageReads time.Duration
|
||||||
StorageUpdates time.Duration
|
StorageUpdates time.Duration
|
||||||
|
|
@ -917,7 +916,6 @@ func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash {
|
||||||
} else {
|
} else {
|
||||||
s.trie = trie
|
s.trie = trie
|
||||||
}
|
}
|
||||||
s.AccountUpdateWait += time.Since(start)
|
|
||||||
}
|
}
|
||||||
// Perform updates before deletions. This prevents resolution of unnecessary trie nodes
|
// Perform updates before deletions. This prevents resolution of unnecessary trie nodes
|
||||||
// in circumstances similar to the following:
|
// in circumstances similar to the following:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue