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

Method GetSpillTime

tx.go:868–870  ·  view source on GitHub ↗

GetSpillTime returns SpillTime atomically.

()

Source from the content-addressed store, hash-verified

866
867// GetSpillTime returns SpillTime atomically.
868func (s *TxStats) GetSpillTime() time.Duration {
869 return atomicLoadDuration(&s.SpillTime)
870}
871
872// IncSpillTime increases SpillTime atomically and returns the new value.
873func (s *TxStats) IncSpillTime(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