mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
add triedb metrics to block io
This commit is contained in:
parent
23bb0c49de
commit
f044367288
1 changed files with 3 additions and 1 deletions
|
|
@ -152,7 +152,9 @@ func (t *perfTracer) OnBlockEnd(err error) {
|
|||
// Calculate block-level timings
|
||||
totalTime := time.Since(t.blockStartTime)
|
||||
blockEndIO := t.statedb.GetAccumulatedIOMeasurements()
|
||||
ioTime := blockEndIO.AccountReads + blockEndIO.StorageReads
|
||||
ioTime := blockEndIO.AccountReads + blockEndIO.AccountHashes + blockEndIO.AccountUpdates + blockEndIO.AccountCommits +
|
||||
blockEndIO.StorageReads + blockEndIO.StorageUpdates + blockEndIO.StorageCommits +
|
||||
blockEndIO.SnapshotCommits + blockEndIO.TrieDBCommits
|
||||
evmTime := totalTime - ioTime
|
||||
|
||||
blockRecord := map[string]interface{}{
|
||||
|
|
|
|||
Loading…
Reference in a new issue