MCPcopy
hub / github.com/etcd-io/bbolt / add

Method add

tx.go:742–755  ·  view source on GitHub ↗
(other *TxStats)

Source from the content-addressed store, hash-verified

740}
741
742func (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

Callers 3

TestTxStats_addFunction · 0.95
closeMethod · 0.80
removeTxMethod · 0.80

Calls 15

IncPageCountMethod · 0.95
IncPageAllocMethod · 0.95
IncCursorCountMethod · 0.95
IncNodeCountMethod · 0.95
IncNodeDerefMethod · 0.95
IncRebalanceMethod · 0.95
IncRebalanceTimeMethod · 0.95
IncSplitMethod · 0.95
IncSpillMethod · 0.95
IncSpillTimeMethod · 0.95
IncWriteMethod · 0.95
IncWriteTimeMethod · 0.95

Tested by 1

TestTxStats_addFunction · 0.76