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

Function btreeAllocContig2Stats

xfs/parse.go:498–520  ·  view source on GitHub ↗

btreeAllocContig2Stats handles abtc2 stats.

(us []uint32)

Source from the content-addressed store, hash-verified

496
497// btreeAllocContig2Stats handles abtc2 stats.
498func btreeAllocContig2Stats(us []uint32) (BtreeAllocContig2Stats, error) {
499 if l := len(us); l != 15 {
500 return BtreeAllocContig2Stats{}, fmt.Errorf("incorrect number of values for abtc2 stats: %d", 1)
501 }
502
503 return BtreeAllocContig2Stats{
504 Lookup: us[0],
505 Compare: us[1],
506 Insrec: us[2],
507 Delrec: us[3],
508 NewRoot: us[4],
509 KillRoot: us[5],
510 Increment: us[6],
511 Decrement: us[7],
512 Lshift: us[8],
513 Rshift: us[9],
514 Split: us[10],
515 Join: us[11],
516 Alloc: us[12],
517 Free: us[13],
518 Moves: us[14],
519 }, nil
520}
521
522// btreeBlockMap2Stats handles bmbt2 stats.
523func btreeBlockMap2Stats(us []uint32) (BtreeBlockMap2Stats, error) {

Callers 1

ParseStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected