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

Method stat

sqlchain/chain.go:1071–1087  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1069}
1070
1071func (c *Chain) stat() {
1072 var (
1073 ic = atomic.LoadInt32(&c.ai.multiIndexCount)
1074 rc = atomic.LoadInt32(&c.ai.responseCount)
1075 tc = atomic.LoadInt32(&c.ai.ackCount)
1076 bc = atomic.LoadInt32(&c.cachedBlockCount)
1077 )
1078 // Print chain stats
1079 c.logEntry().WithFields(log.Fields{
1080 "multiIndex_count": ic,
1081 "response_header_count": rc,
1082 "query_tracker_count": tc,
1083 "cached_block_count": bc,
1084 }).Info("chain mem stats")
1085 // Print xeno stats
1086 c.st.Stat(c.databaseID)
1087}
1088
1089func (c *Chain) billing(h int32, node *blockNode) (ub *types.UpdateBilling, err error) {
1090 le := c.logEntryWithHeadState()

Callers 2

runCurrentTurnMethod · 0.95
syncMethod · 0.95

Calls 4

logEntryMethod · 0.95
InfoMethod · 0.80
WithFieldsMethod · 0.80
StatMethod · 0.80

Tested by

no test coverage detected