mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 04:56:36 +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
|
// Calculate block-level timings
|
||||||
totalTime := time.Since(t.blockStartTime)
|
totalTime := time.Since(t.blockStartTime)
|
||||||
blockEndIO := t.statedb.GetAccumulatedIOMeasurements()
|
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
|
evmTime := totalTime - ioTime
|
||||||
|
|
||||||
blockRecord := map[string]interface{}{
|
blockRecord := map[string]interface{}{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue