Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDefaultMetricsZone ¶
InitDefaultMetricsZone used to initialize the default zone according to the configuration.
func InitMetricsZone ¶
InitMetricsZone used to initialize the default zone according to the configuration. It's caller's responsibility to detach the zone.
func NewShmCounterFunc ¶
func NewShmGaugeFunc ¶
Types ¶
type ShmCounter ¶
type ShmCounter uintptr
StandardCounter is the standard implementation of a Counter and uses the sync/atomic package to manage a single int64 value.
func (ShmCounter) Dec ¶
func (c ShmCounter) Dec(i int64)
Dec decrements the counter by the given amount.
func (ShmCounter) Inc ¶
func (c ShmCounter) Inc(i int64)
Inc increments the counter by the given amount.
func (ShmCounter) Snapshot ¶
func (c ShmCounter) Snapshot() gometrics.Counter
Snapshot returns a read-only copy of the counter.
Click to show internal directories.
Click to hide internal directories.