aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-30 07:58:49 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-30 07:58:49 +0800
commite896cab82ccad8f1c4fb13892d67ba7452948403 (patch)
treeb2967ce1ed56ae19660319e8bb7a849698187a74 /core
parent7c4ed8055cc036214279e3ebded74c58d6808d05 (diff)
parent5f3792c2a750dd95adeccbd5cf0cb19ecddfb43f (diff)
downloadgo-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.go4
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 (