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

Method GetRebalanceTime

tx.go:838–840  ·  view source on GitHub ↗

GetRebalanceTime returns RebalanceTime atomically.

()

Source from the content-addressed store, hash-verified

836
837// GetRebalanceTime returns RebalanceTime atomically.
838func (s *TxStats) GetRebalanceTime() time.Duration {
839 return atomicLoadDuration(&s.RebalanceTime)
840}
841
842// IncRebalanceTime increases RebalanceTime atomically and returns the new value.
843func (s *TxStats) IncRebalanceTime(delta time.Duration) time.Duration {

Callers 6

SubMethod · 0.95
TestTxStats_addFunction · 0.95
addMethod · 0.80
TestTxStats_SubFunction · 0.80
PrintStatsMethod · 0.80

Calls 1

atomicLoadDurationFunction · 0.85

Tested by 3

TestTxStats_addFunction · 0.76
TestTxStats_SubFunction · 0.64