diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-30 07:58:49 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-30 07:58:49 +0800 |
commit | e896cab82ccad8f1c4fb13892d67ba7452948403 (patch) | |
tree | b2967ce1ed56ae19660319e8bb7a849698187a74 /core | |
parent | 7c4ed8055cc036214279e3ebded74c58d6808d05 (diff) | |
parent | 5f3792c2a750dd95adeccbd5cf0cb19ecddfb43f (diff) | |
download | go-tangerine-e896cab82ccad8f1c4fb13892d67ba7452948403.tar go-tangerine-e896cab82ccad8f1c4fb13892d67ba7452948403.tar.gz go-tangerine-e896cab82ccad8f1c4fb13892d67ba7452948403.tar.bz2 go-tangerine-e896cab82ccad8f1c4fb13892d67ba7452948403.tar.lz go-tangerine-e896cab82ccad8f1c4fb13892d67ba7452948403.tar.xz go-tangerine-e896cab82ccad8f1c4fb13892d67ba7452948403.tar.zst go-tangerine-e896cab82ccad8f1c4fb13892d67ba7452948403.zip |
Merge pull request #1360 from obscuren/peter-metrics
Rebased peter's PR
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index fc1922b3b..7c78b6bb7 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -18,11 +18,11 @@ 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" "github.com/hashicorp/golang-lru" - "github.com/rcrowley/go-metrics" "github.com/syndtr/goleveldb/leveldb" ) @@ -33,7 +33,7 @@ var ( blockHashPre = []byte("block-hash-") blockNumPre = []byte("block-num-") - blockInsertTimer = metrics.GetOrRegisterTimer("core/BlockInsertions", metrics.DefaultRegistry) + blockInsertTimer = metrics.NewTimer("chain/inserts") ) const ( |