diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-10-19 22:35:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 22:35:58 +0800 |
commit | f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc (patch) | |
tree | 6ae827ef8a6b62c0fc9e14c8e72a44b47fba5c82 /cmd/geth/chaincmd.go | |
parent | 5d9bb0a050df0e58ed1073ef92f45676380ac26e (diff) | |
parent | 88a593d559d26a91b64178094728fd9ca7c25a2c (diff) | |
download | go-tangerine-f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc.tar go-tangerine-f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc.tar.gz go-tangerine-f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc.tar.bz2 go-tangerine-f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc.tar.lz go-tangerine-f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc.tar.xz go-tangerine-f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc.tar.zst go-tangerine-f2ae2f7eef1e3e15b9e6f81e2b5895e2d20d12bc.zip |
Merge pull request #3176 from karalabe/trie-stats-report
cmd/geth, trie: report on trie cache unloads, also add debug log
Diffstat (limited to 'cmd/geth/chaincmd.go')
-rw-r--r-- | cmd/geth/chaincmd.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index c41375c4d..20c7dc74c 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -99,7 +99,8 @@ func importChain(ctx *cli.Context) error { utils.Fatalf("Failed to read database stats: %v", err) } fmt.Println(stats) - fmt.Printf("Trie cache misses: %d\n\n", trie.CacheMisses()) + fmt.Printf("Trie cache misses: %d\n", trie.CacheMisses()) + fmt.Printf("Trie cache unloads: %d\n\n", trie.CacheUnloads()) // Compact the entire database to more accurately measure disk io and print the stats start = time.Now() |