diff --git a/core/blockchain_stats.go b/core/blockchain_stats.go index cfe9a4cbe4..628ebc266e 100644 --- a/core/blockchain_stats.go +++ b/core/blockchain_stats.go @@ -119,6 +119,7 @@ DB commit: %v Block write: %v Total: %v +%s %s ############################## `, block.Number(), block.Hash(), len(block.Transactions()), s.MgasPerSecond, @@ -127,11 +128,8 @@ Total: %v common.PrettyDuration(s.StorageReads), s.StorageLoaded, common.PrettyDuration(s.AccountHashes+s.AccountCommits+s.AccountUpdates+s.StorageCommits+s.StorageUpdates), common.PrettyDuration(s.TrieDBCommit+s.SnapshotCommit), common.PrettyDuration(s.BlockWrite), - common.PrettyDuration(s.TotalTime), s.StateReadCacheStats) - - log.Info("") + common.PrettyDuration(s.TotalTime), s.StateReadCacheStats, s.StatePrefetchCacheStats) for _, line := range strings.Split(msg, "\n") { log.Info(line) } - log.Info("") } diff --git a/core/state/reader.go b/core/state/reader.go index be14885d4e..e672f74b5c 100644 --- a/core/state/reader.go +++ b/core/state/reader.go @@ -120,7 +120,7 @@ func (s ReaderStats) String() string { if s.StorageDiskHit > 0 { storageDiskHitRate = float64(s.StorageDiskHit) / float64(s.StorageDiskHit+s.StorageDiskMiss) * 100 } - msg := fmt.Sprintf("=== Reader statistics ===\n") + msg := fmt.Sprintf("Reader statistics\n") msg += fmt.Sprintf("account: cache (hit: %d, miss: %d, rate: %.2f)\n", s.AccountCacheHit, s.AccountCacheMiss, accountCacheHitRate) msg += fmt.Sprintf("account: disk (hit: %d, miss: %d, rate: %.2f)\n", s.AccountDiskHit, s.AccountDiskMiss, accountDiskHitRate) msg += fmt.Sprintf("storage: cache (hit: %d, miss: %d, rate: %.2f)\n", s.StorageCacheHit, s.StorageCacheMiss, storageCacheHitRate)