From 88a593d559d26a91b64178094728fd9ca7c25a2c Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Wed, 19 Oct 2016 17:17:42 +0300 Subject: cmd/geth, trie: report on trie cache unloads, also add debug log --- cmd/geth/chaincmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/geth/chaincmd.go') 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() -- cgit