btreeReverseMapMemStats handles rmapbt_mem stats.
(us []uint32)
| 646 | |
| 647 | // btreeReverseMapMemStats handles rmapbt_mem stats. |
| 648 | func btreeReverseMapMemStats(us []uint32) (BtreeReverseMapMemStats, error) { |
| 649 | if l := len(us); l != 15 { |
| 650 | return BtreeReverseMapMemStats{}, fmt.Errorf("incorrect number of values for rmapbt_mem stats: %d", l) |
| 651 | } |
| 652 | |
| 653 | return BtreeReverseMapMemStats{ |
| 654 | Lookup: us[0], |
| 655 | Compare: us[1], |
| 656 | Insrec: us[2], |
| 657 | Delrec: us[3], |
| 658 | NewRoot: us[4], |
| 659 | KillRoot: us[5], |
| 660 | Increment: us[6], |
| 661 | Decrement: us[7], |
| 662 | Lshift: us[8], |
| 663 | Rshift: us[9], |
| 664 | Split: us[10], |
| 665 | Join: us[11], |
| 666 | Alloc: us[12], |
| 667 | Free: us[13], |
| 668 | Moves: us[14], |
| 669 | }, nil |
| 670 | } |
| 671 | |
| 672 | // btreeRcbagStats handles rcbagbt stats. |
| 673 | func btreeRcbagStats(us []uint32) (BtreeRcbagStats, error) { |