aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-10-19 22:17:42 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-10-19 22:31:19 +0800
commit88a593d559d26a91b64178094728fd9ca7c25a2c (patch)
tree6ae827ef8a6b62c0fc9e14c8e72a44b47fba5c82 /cmd/geth
parent5d9bb0a050df0e58ed1073ef92f45676380ac26e (diff)
downloaddexon-88a593d559d26a91b64178094728fd9ca7c25a2c.tar
dexon-88a593d559d26a91b64178094728fd9ca7c25a2c.tar.gz
dexon-88a593d559d26a91b64178094728fd9ca7c25a2c.tar.bz2
dexon-88a593d559d26a91b64178094728fd9ca7c25a2c.tar.lz
dexon-88a593d559d26a91b64178094728fd9ca7c25a2c.tar.xz
dexon-88a593d559d26a91b64178094728fd9ca7c25a2c.tar.zst
dexon-88a593d559d26a91b64178094728fd9ca7c25a2c.zip
cmd/geth, trie: report on trie cache unloads, also add debug log
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/chaincmd.go3
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()