aboutsummaryrefslogtreecommitdiffstats
path: root/metrics
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
parentc780901cd5bd46e0d9316b653e02e4a14ca43b60 (diff)
downloadgo-tangerine-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar
go-tangerine-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.gz
go-tangerine-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.bz2
go-tangerine-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.lz
go-tangerine-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.xz
go-tangerine-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.tar.zst
go-tangerine-9e9bfc4e264b0bc16bdfe893e9cb3cfad096c48c.zip
metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexp
Diffstat (limited to 'metrics')
-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