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

Function btreeBlockMap2Stats

xfs/parse.go:523–545  ·  view source on GitHub ↗

btreeBlockMap2Stats handles bmbt2 stats.

(us []uint32)

Source from the content-addressed store, hash-verified

521
522// btreeBlockMap2Stats handles bmbt2 stats.
523func btreeBlockMap2Stats(us []uint32) (BtreeBlockMap2Stats, error) {
524 if l := len(us); l != 15 {
525 return BtreeBlockMap2Stats{}, fmt.Errorf("incorrect number of values for bmbt2 stats: %d", 1)
526 }
527
528 return BtreeBlockMap2Stats{
529 Lookup: us[0],
530 Compare: us[1],
531 Insrec: us[2],
532 Delrec: us[3],
533 NewRoot: us[4],
534 KillRoot: us[5],
535 Increment: us[6],
536 Decrement: us[7],
537 Lshift: us[8],
538 Rshift: us[9],
539 Split: us[10],
540 Join: us[11],
541 Alloc: us[12],
542 Free: us[13],
543 Moves: us[14],
544 }, nil
545}
546
547// btreeInode2Stats handles ibt2 stats.
548func btreeInode2Stats(us []uint32) (BtreeInode2Stats, 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…