(other BucketStats)
| 979 | } |
| 980 | |
| 981 | func (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. |
| 1001 | func cloneBytes(v []byte) []byte { |
no outgoing calls