MCPcopy Create free account
hub / github.com/prometheus/procfs / btreeRtRefCountStats

Function btreeRtRefCountStats

xfs/parse.go:748–770  ·  view source on GitHub ↗

btreeRtRefCountStats handles rtrefcntbt stats.

(us []uint32)

Source from the content-addressed store, hash-verified

746
747// btreeRtRefCountStats handles rtrefcntbt stats.
748func btreeRtRefCountStats(us []uint32) (BtreeRtRefCountStats, error) {
749 if l := len(us); l != 15 {
750 return BtreeRtRefCountStats{}, fmt.Errorf("incorrect number of values for rtrefcntbt stats: %d", l)
751 }
752
753 return BtreeRtRefCountStats{
754 Lookup: us[0],
755 Compare: us[1],
756 Insrec: us[2],
757 Delrec: us[3],
758 NewRoot: us[4],
759 KillRoot: us[5],
760 Increment: us[6],
761 Decrement: us[7],
762 Lshift: us[8],
763 Rshift: us[9],
764 Split: us[10],
765 Join: us[11],
766 Alloc: us[12],
767 Free: us[13],
768 Moves: us[14],
769 }, nil
770}
771
772// zonedStats handles zoned stats.
773func zonedStats(us []uint32) (ZonedStats, error) {

Callers 1

ParseStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected