MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / GetStats

Method GetStats

driver/hybriddb/db.go:313–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311}
312
313func (db *DB) GetStats() *Stats {
314 db.mu.RLock()
315 defer db.mu.RUnlock()
316
317 if db.stats == nil {
318 return &Stats{}
319 }
320
321 stats := *db.stats
322 return &stats
323}
324
325func (db *DB) Metrics() (tit string, metrics []map[string]any) {
326 tit = "hybriddb"

Callers 1

MetricsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected