From 10f600aef4db488d6750a8056e68868a9e00e452 Mon Sep 17 00:00:00 2001 From: Po Date: Tue, 20 May 2025 02:51:54 +0200 Subject: [PATCH] add prefetcher metric --- cmd/geth/chaincmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index 9b49021913..70093585b8 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -439,12 +439,15 @@ func showMetrics() { blockExecutionTimer := metrics.GetOrRegisterResettingTimer("chain/execution", nil) blockWriteTimer := metrics.GetOrRegisterResettingTimer("chain/write", nil) + blockPrefetchExecuteTimer := metrics.GetOrRegisterResettingTimer("chain/prefetch/executes", nil) + // not important fmt.Println("accountReadSingleTimer", accountReadSingleTimer.Total()) fmt.Println("storageReadSingleTimer", storageReadSingleTimer.Total()) fmt.Println("blockCrossValidationTimer", blockCrossValidationTimer.Total()) // execution + fmt.Println("prefetchTimer", blockPrefetchExecuteTimer.Total()) fmt.Println("accountReadTimer", accountReadTimer.Total()) fmt.Println("storageReadTimer", storageReadTimer.Total()) fmt.Println("blockExecutionTimer", blockExecutionTimer.Total())