diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-29 21:11:01 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 06:51:46 +0800 |
commit | 01fe97211354d13ecaba8a52c82b808b7a7e8393 (patch) | |
tree | 337e23800833c81e1d21f5850d4079c575e89ea7 /core | |
parent | ccbb56b4f2cdba352eaa859ce3e34f999287f5c0 (diff) | |
download | dexon-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar.gz dexon-01fe97211354d13ecaba8a52c82b808b7a7e8393.tar.zst dexon-01fe97211354d13ecaba8a52c82b808b7a7e8393.zip |
cmd, core, eth, metrics, p2p: require enabling metrics
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index fc1922b3b..480311951 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -18,6 +18,7 @@ import ( "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" + "github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/pow" "github.com/ethereum/go-ethereum/rlp" @@ -33,7 +34,7 @@ var ( blockHashPre = []byte("block-hash-") blockNumPre = []byte("block-num-") - blockInsertTimer = metrics.GetOrRegisterTimer("core/BlockInsertions", metrics.DefaultRegistry) + blockInsertTimer = metrics.NewTimer("chain/inserts") ) const ( |