Skip to content

Commit

Permalink
chore: change execute time metrices
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylichang committed Apr 7, 2024
1 parent f82ce1b commit 58481d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1918,9 +1918,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error)
storageHashTimer.Update(statedb.StorageHashes) // Storage hashes are complete(in validation)
//triehash := statedb.AccountHashes + statedb.StorageHashes // The time spent on tries hashing
//trieUpdate := statedb.AccountUpdates + statedb.StorageUpdates // The time spent on tries update
trieRead := statedb.SnapshotAccountReads + statedb.AccountReads // The time spent on account read
trieRead += statedb.SnapshotStorageReads + statedb.StorageReads // The time spent on storage read
blockExecutionTimer.Update(ptime - trieRead) // The time spent on EVM processing
//trieRead := statedb.SnapshotAccountReads + statedb.AccountReads // The time spent on account read
//trieRead += statedb.SnapshotStorageReads + statedb.StorageReads // The time spent on storage read
//blockExecutionTimer.Update(ptime - trieRead) // The time spent on EVM processing
blockExecutionTimer.Update(ptime)
//blockValidationTimer.Update(vtime - (triehash + trieUpdate)) // The time spent on block validation
blockValidationTimer.Update(vtime)

Expand Down

0 comments on commit 58481d8

Please sign in to comment.