MCPcopy Create free account
hub / github.com/couchbase/moss / Stats

Method Stats

segment_stack.go:185–193  ·  view source on GitHub ↗

Stats returns the stats for this segment stack.

()

Source from the content-addressed store, hash-verified

183
184// Stats returns the stats for this segment stack.
185func (ss *segmentStack) Stats() *SegmentStackStats {
186 rv := &SegmentStackStats{CurSegments: uint64(len(ss.a))}
187 for _, seg := range ss.a {
188 rv.CurOps += uint64(seg.Len())
189 nk, nv := seg.NumKeyValBytes()
190 rv.CurBytes += nk + nv
191 }
192 return rv
193}
194
195// ChildCollectionNames returns an array of child collection name strings.
196func (ss *segmentStack) ChildCollectionNames() ([]string, error) {

Callers

nothing calls this directly

Calls 2

LenMethod · 0.65
NumKeyValBytesMethod · 0.65

Tested by

no test coverage detected