mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
core: clarify ProcessResultWithMetrics.Counts/Reads semantics
This commit is contained in:
parent
823b582fc4
commit
3d135baa36
1 changed files with 6 additions and 4 deletions
|
|
@ -23,11 +23,13 @@ type ProcessResultWithMetrics struct {
|
||||||
// the time it took to execute all txs in the block
|
// the time it took to execute all txs in the block
|
||||||
ExecTime time.Duration
|
ExecTime time.Duration
|
||||||
PostProcessTime time.Duration
|
PostProcessTime time.Duration
|
||||||
// Counts is the aggregate of per-tx, pre-tx and post-tx state-mutation
|
// Counts is the per-StateDB sum of state-mutation counters across pre-tx,
|
||||||
// counts. Plain-int snapshot, safe to copy.
|
// per-tx and post-tx phases. The caller may override AccountLoaded and
|
||||||
|
// StorageLoaded with deduplicated counts derived from block.AccessList()
|
||||||
|
// (per-StateDB sums over-count addresses touched by multiple phases).
|
||||||
Counts state.StateCounts
|
Counts state.StateCounts
|
||||||
// Reads is the aggregate of per-tx, pre-tx and post-tx state-read times.
|
// Reads is the sum of per-StateDB read times across pre-tx, per-tx and
|
||||||
// Sum-of-CPU-time, not wall-clock.
|
// post-tx phases. Sum-of-CPU-time, not wall-clock.
|
||||||
Reads state.ReadDurations
|
Reads state.ReadDurations
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue