aboutsummaryrefslogtreecommitdiffstats
path: root/metrics/metrics.go
diff options
context:
space:
mode:
authorNick Johnson <arachnid@notdot.net>2016-10-14 15:22:31 +0800
committerNick Johnson <arachnid@notdot.net>2016-10-14 19:29:08 +0800
commit9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c (patch)
tree8fd85d22e2ab013bc772dbc76997d94c86384ed5 /metrics/metrics.go
parentc780901cd5bd46e0d9316b653e02e4a14ca43b60 (diff)
downloaddexon-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar
dexon-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.gz
dexon-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.bz2
dexon-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.lz
dexon-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.xz
dexon-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.zst
dexon-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.zip
metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexp
Diffstat (limited to 'metrics/metrics.go')
-rw-r--r--metrics/metrics.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go
index fcf8b5c32..7f647cd00 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -26,6 +26,7 @@ import (
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/rcrowley/go-metrics"
+ "github.com/rcrowley/go-metrics/exp"
)
// MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
@@ -44,6 +45,7 @@ func init() {
Enabled = true
}
}
+ exp.Exp(metrics.DefaultRegistry)
}
// NewMeter create a new metrics Meter, either a real one of a NOP stub depending