From 2685212d75ee16205650ada2abc814a17cef1d29 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Wed, 6 May 2026 15:18:54 -0400 Subject: [PATCH] cleanup --- core/blockchain_stats.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/core/blockchain_stats.go b/core/blockchain_stats.go index d2d28a1c79..e413fb3ef4 100644 --- a/core/blockchain_stats.go +++ b/core/blockchain_stats.go @@ -304,26 +304,6 @@ func (s *ExecuteStats) logSlow(block *types.Block, slowBlockThreshold time.Durat } func (s *ExecuteStats) reportBALMetrics() { - /* - if s.AccountLoaded != 0 { - accountReadTimer.Update(s.AccountReads) - accountReadSingleTimer.Update(s.AccountReads / time.Duration(s.AccountLoaded)) - } - if s.StorageLoaded != 0 { - storageReadTimer.Update(s.StorageReads) - storageReadSingleTimer.Update(s.StorageReads / time.Duration(s.StorageLoaded)) - } - if s.CodeLoaded != 0 { - codeReadTimer.Update(s.CodeReads) - codeReadSingleTimer.Update(s.CodeReads / time.Duration(s.CodeLoaded)) - codeReadBytesTimer.Update(time.Duration(s.CodeLoadBytes)) - } - // TODO: implement these ^ - */ - //accountUpdateTimer.Update(s.AccountUpdates) // Account updates are complete(in validation) - //storageUpdateTimer.Update(s.StorageUpdates) // Storage updates are complete(in validation) - //accountHashTimer.Update(s.AccountHashes) // Account hashes are complete(in validation) - accountCommitTimer.Update(s.AccountCommits) // Account commits are complete, we can mark them storageCommitTimer.Update(s.StorageCommits) // Storage commits are complete, we can mark them @@ -335,12 +315,6 @@ func (s *ExecuteStats) reportBALMetrics() { stateRootComputeTimer.Update(m.AccountUpdate + m.StateUpdate + m.StateHash) } - //blockExecutionTimer.Update(s.Execution) // The time spent on EVM processing - // ^basically impossible to get this metric with parallel execution - - //blockValidationTimer.Update(s.Validation) // The time spent on block validation - //blockCrossValidationTimer.Update(s.CrossValidation) // The time spent on stateless cross validation - blockWriteTimer.Update(s.BlockWrite) // The time spent on block write blockInsertTimer.Update(s.TotalTime) // The total time spent on block execution chainMgaspsMeter.Update(time.Duration(s.MgasPerSecond)) // TODO(rjl493456442) generalize the ResettingTimer