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

Function btreeRefCountStats

xfs/parse.go:623–645  ·  view source on GitHub ↗

btreeRefCountStats handles refcntbt stats.

(us []uint32)

Source from the content-addressed store, hash-verified

621
622// btreeRefCountStats handles refcntbt stats.
623func btreeRefCountStats(us []uint32) (BtreeRefCountStats, error) {
624 if l := len(us); l != 15 {
625 return BtreeRefCountStats{}, fmt.Errorf("incorrect number of values for refcntbt stats: %d", l)
626 }
627
628 return BtreeRefCountStats{
629 Lookup: us[0],
630 Compare: us[1],
631 Insrec: us[2],
632 Delrec: us[3],
633 NewRoot: us[4],
634 KillRoot: us[5],
635 Increment: us[6],
636 Decrement: us[7],
637 Lshift: us[8],
638 Rshift: us[9],
639 Split: us[10],
640 Join: us[11],
641 Alloc: us[12],
642 Free: us[13],
643 Moves: us[14],
644 }, nil
645}
646
647// btreeReverseMapMemStats handles rmapbt_mem stats.
648func btreeReverseMapMemStats(us []uint32) (BtreeReverseMapMemStats, error) {

Callers 1

ParseStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…