Stats returns the stats for this segment stack.
()
| 183 | |
| 184 | // Stats returns the stats for this segment stack. |
| 185 | func (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. |
| 196 | func (ss *segmentStack) ChildCollectionNames() ([]string, error) { |
nothing calls this directly
no test coverage detected