From 4f46bd19d0b123327596785dc3975d5e4008d761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 19 Oct 2016 14:55:13 +0300 Subject: cmd, core/state: allow configurable trie cache generations --- cmd/geth/chaincmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/geth/chaincmd.go') diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index d7cdf1064..c41375c4d 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -99,6 +99,7 @@ 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()) // Compact the entire database to more accurately measure disk io and print the stats start = time.Now() @@ -113,7 +114,6 @@ func importChain(ctx *cli.Context) error { utils.Fatalf("Failed to read database stats: %v", err) } fmt.Println(stats) - fmt.Println("Trie cache misses:", trie.CacheMisses()) } return nil } -- cgit v1.2.3