btreeRefCountStats handles refcntbt stats.
(us []uint32)
| 621 | |
| 622 | // btreeRefCountStats handles refcntbt stats. |
| 623 | func 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. |
| 648 | func btreeReverseMapMemStats(us []uint32) (BtreeReverseMapMemStats, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…