MCPcopy
hub / github.com/bnb-chain/bsc / MeterSnapshot

Struct MeterSnapshot

metrics/meter.go:103–107  ·  view source on GitHub ↗

MeterSnapshot is a read-only copy of another Meter.

Source from the content-addressed store, hash-verified

101
102// MeterSnapshot is a read-only copy of another Meter.
103type MeterSnapshot struct {
104 temp atomic.Int64
105 count int64
106 rate1, rate5, rate15, rateMean float64
107}
108
109// Count returns the count of events at the time the snapshot was taken.
110func (m *MeterSnapshot) Count() int64 { return m.count }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected