mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
add prefetcher metric
This commit is contained in:
parent
f27f4284d3
commit
10f600aef4
1 changed files with 3 additions and 0 deletions
|
|
@ -439,12 +439,15 @@ func showMetrics() {
|
||||||
blockExecutionTimer := metrics.GetOrRegisterResettingTimer("chain/execution", nil)
|
blockExecutionTimer := metrics.GetOrRegisterResettingTimer("chain/execution", nil)
|
||||||
blockWriteTimer := metrics.GetOrRegisterResettingTimer("chain/write", nil)
|
blockWriteTimer := metrics.GetOrRegisterResettingTimer("chain/write", nil)
|
||||||
|
|
||||||
|
blockPrefetchExecuteTimer := metrics.GetOrRegisterResettingTimer("chain/prefetch/executes", nil)
|
||||||
|
|
||||||
// not important
|
// not important
|
||||||
fmt.Println("accountReadSingleTimer", accountReadSingleTimer.Total())
|
fmt.Println("accountReadSingleTimer", accountReadSingleTimer.Total())
|
||||||
fmt.Println("storageReadSingleTimer", storageReadSingleTimer.Total())
|
fmt.Println("storageReadSingleTimer", storageReadSingleTimer.Total())
|
||||||
fmt.Println("blockCrossValidationTimer", blockCrossValidationTimer.Total())
|
fmt.Println("blockCrossValidationTimer", blockCrossValidationTimer.Total())
|
||||||
|
|
||||||
// execution
|
// execution
|
||||||
|
fmt.Println("prefetchTimer", blockPrefetchExecuteTimer.Total())
|
||||||
fmt.Println("accountReadTimer", accountReadTimer.Total())
|
fmt.Println("accountReadTimer", accountReadTimer.Total())
|
||||||
fmt.Println("storageReadTimer", storageReadTimer.Total())
|
fmt.Println("storageReadTimer", storageReadTimer.Total())
|
||||||
fmt.Println("blockExecutionTimer", blockExecutionTimer.Total())
|
fmt.Println("blockExecutionTimer", blockExecutionTimer.Total())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue