btreeRtRefCountStats handles rtrefcntbt stats.
(us []uint32)
| 746 | |
| 747 | // btreeRtRefCountStats handles rtrefcntbt stats. |
| 748 | func 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. |
| 773 | func zonedStats(us []uint32) (ZonedStats, error) { |