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

Method Add

bucket.go:981–998  ·  view source on GitHub ↗
(other BucketStats)

Source from the content-addressed store, hash-verified

979}
980
981func (s *BucketStats) Add(other BucketStats) {
982 s.BranchPageN += other.BranchPageN
983 s.BranchOverflowN += other.BranchOverflowN
984 s.LeafPageN += other.LeafPageN
985 s.LeafOverflowN += other.LeafOverflowN
986 s.KeyN += other.KeyN
987 if s.Depth < other.Depth {
988 s.Depth = other.Depth
989 }
990 s.BranchAlloc += other.BranchAlloc
991 s.BranchInuse += other.BranchInuse
992 s.LeafAlloc += other.LeafAlloc
993 s.LeafInuse += other.LeafInuse
994
995 s.BucketN += other.BucketN
996 s.InlineBucketN += other.InlineBucketN
997 s.InlineBucketInuse += other.InlineBucketInuse
998}
999
1000// cloneBytes returns a copy of a given slice.
1001func cloneBytes(v []byte) []byte {

Callers 9

StatsMethod · 0.95
statsFuncFunction · 0.95
BenchmarkDBBatchSingleFunction · 0.80
testSimulateFunction · 0.80

Calls

no outgoing calls