From abd8612b1d59ee11884f827f0a73c31300a08168 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Wed, 12 Nov 2025 15:16:25 +0800 Subject: [PATCH] add state prefetch timer --- core/blockchain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/blockchain.go b/core/blockchain.go index 37c901504d..5d6fb9f2da 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -2088,6 +2088,8 @@ func (bc *BlockChain) processBlockWithAccessList(parentRoot common.Hash, block * blockPreprocessingTimer.Update(res.PreProcessTime) txExecutionTimer.Update(res.ExecTime) + // update the metrics from the block state root update + stateTriePrefetchTimer.Update(res.StateTransitionMetrics.StatePrefetch) accountTriesUpdateTimer.Update(res.StateTransitionMetrics.AccountUpdate) stateTrieUpdateTimer.Update(res.StateTransitionMetrics.StateUpdate) stateTrieHashTimer.Update(res.StateTransitionMetrics.StateHash)