mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
cleanup
This commit is contained in:
parent
da9e5177f9
commit
2685212d75
1 changed files with 0 additions and 26 deletions
|
|
@ -304,26 +304,6 @@ func (s *ExecuteStats) logSlow(block *types.Block, slowBlockThreshold time.Durat
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *ExecuteStats) reportBALMetrics() {
|
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
|
accountCommitTimer.Update(s.AccountCommits) // Account commits are complete, we can mark them
|
||||||
storageCommitTimer.Update(s.StorageCommits) // Storage 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)
|
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
|
blockWriteTimer.Update(s.BlockWrite) // The time spent on block write
|
||||||
blockInsertTimer.Update(s.TotalTime) // The total time spent on block execution
|
blockInsertTimer.Update(s.TotalTime) // The total time spent on block execution
|
||||||
chainMgaspsMeter.Update(time.Duration(s.MgasPerSecond)) // TODO(rjl493456442) generalize the ResettingTimer
|
chainMgaspsMeter.Update(time.Duration(s.MgasPerSecond)) // TODO(rjl493456442) generalize the ResettingTimer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue