| 740 | } |
| 741 | |
| 742 | func (s *TxStats) add(other *TxStats) { |
| 743 | s.IncPageCount(other.GetPageCount()) |
| 744 | s.IncPageAlloc(other.GetPageAlloc()) |
| 745 | s.IncCursorCount(other.GetCursorCount()) |
| 746 | s.IncNodeCount(other.GetNodeCount()) |
| 747 | s.IncNodeDeref(other.GetNodeDeref()) |
| 748 | s.IncRebalance(other.GetRebalance()) |
| 749 | s.IncRebalanceTime(other.GetRebalanceTime()) |
| 750 | s.IncSplit(other.GetSplit()) |
| 751 | s.IncSpill(other.GetSpill()) |
| 752 | s.IncSpillTime(other.GetSpillTime()) |
| 753 | s.IncWrite(other.GetWrite()) |
| 754 | s.IncWriteTime(other.GetWriteTime()) |
| 755 | } |
| 756 | |
| 757 | // Sub calculates and returns the difference between two sets of transaction stats. |
| 758 | // This is useful when obtaining stats at two different points and time and |