MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Stat

Method Stat

xenomint/state.go:731–746  ·  view source on GitHub ↗

Stat prints the statistic message of the State object.

(id proto.DatabaseID)

Source from the content-addressed store, hash-verified

729
730// Stat prints the statistic message of the State object.
731func (s *State) Stat(id proto.DatabaseID) {
732 var (
733 p = func() *pool {
734 s.RLock()
735 defer s.RUnlock()
736 return s.pool
737 }()
738 fc = atomic.LoadInt32(&p.failedRequestCount)
739 tc = atomic.LoadInt32(&p.trackerCount)
740 )
741 log.WithFields(log.Fields{
742 "database_id": id,
743 "pooled_fail_request_count": fc,
744 "pooled_query_tracker": tc,
745 }).Info("xeno pool stats")
746}

Callers 15

NewChainWithContextFunction · 0.80
removeFileIfIsNotSQLiteFunction · 0.80
statMethod · 0.80
DropMethod · 0.80
ExistFunction · 0.80
TestRemoveAllFunction · 0.80
TestStartStopProfileFunction · 0.80
TestStateFunction · 0.80
writeQueryMethod · 0.80
TestDatabaseRecycleFunction · 0.80
updateCPUfreqMethod · 0.80

Calls 2

WithFieldsFunction · 0.92
InfoMethod · 0.80

Tested by 5

TestRemoveAllFunction · 0.64
TestStartStopProfileFunction · 0.64
TestStateFunction · 0.64
TestDatabaseRecycleFunction · 0.64