mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
18 lines
419 B
Go
18 lines
419 B
Go
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//go:build roaringstats
|
|
// +build roaringstats
|
|
|
|
package roaring
|
|
|
|
import (
|
|
"github.com/featurebasedb/featurebase/v3/stats"
|
|
)
|
|
|
|
var statsEv = stats.NewExpvarStatsClient()
|
|
|
|
// statsHit increments the given stat, so we can tell how often we've hit
|
|
// that particular event.
|
|
func statsHit(name string) {
|
|
statsEv.Count(name, 1, 1)
|
|
}
|