featurebase/roaring/inst.go
2022-09-02 13:23:39 -07:00

30 lines
464 B
Go

// Copyright 2022 Molecula Corp. (DBA FeatureBase).
// SPDX-License-Identifier: Apache-2.0
//go:build btreeInstrumentation
// +build btreeInstrumentation
package roaring
type dTree struct {
t *tree
}
type treeInst struct {
deCopied int64
}
func (t *tree) didCopy(n int) {
t.deCopied += int64(n)
}
func (d *d) didCopy(n int) {
d.t.deCopied += int64(n)
}
func (t *tree) countCopies() int64 {
return t.deCopied
}
func (d *d) setTree(t *tree) {
d.t = t
}