Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricChain ¶
func NewMetricChain(blockchain container.Blockchain) container.Blockchain
Types ¶
type DefaultRegistry ¶
type DefaultRegistry struct {
metrics.Registry
}
func NewRegistry ¶
func NewRegistry() *DefaultRegistry
func (*DefaultRegistry) Export ¶
func (r *DefaultRegistry) Export()
func (*DefaultRegistry) NewCounter ¶
func (r *DefaultRegistry) NewCounter(name string) *Counter
func (*DefaultRegistry) NewHistogram ¶
func (r *DefaultRegistry) NewHistogram(name string) *Histogram
func (*DefaultRegistry) NewMeter ¶
func (r *DefaultRegistry) NewMeter(name string) *Meter
func (*DefaultRegistry) NewTimer ¶
func (r *DefaultRegistry) NewTimer(name string) *Timer
type Exporter ¶
type Exporter interface { Export() SentTxCount() int64 ExcutedTxCount() int64 SnapshotTxReqMeter(name string) SnapshotStopper SnapshotTxRespMeter(name string) SnapshotStopper }
type Histogram ¶
type Histogram struct { metrics.Histogram // contains filtered or unexported fields }
type SnapshotStopper ¶
type SnapshotStopper func()
Click to show internal directories.
Click to hide internal directories.