MCPcopy
hub / github.com/tinode/chat / statsInc

Function statsInc

server/stats.go:110–117  ·  view source on GitHub ↗

Async publish an increment (decrement) to int variable.

(name string, val int)

Source from the content-addressed store, hash-verified

108
109// Async publish an increment (decrement) to int variable.
110func statsInc(name string, val int) {
111 if globals.statsUpdate != nil {
112 select {
113 case globals.statsUpdate <- &varUpdate{name, int64(val), true}:
114 default:
115 }
116 }
117}
118
119// Async publish a value (add a sample) to a histogram variable.
120func statsAddHistSample(name string, val float64) {

Callers 15

MessageLoopMethod · 0.85
sendMessageGrpcMethod · 0.85
topicInitFunction · 0.85
readLoopMethod · 0.85
sendMessageMethod · 0.85
sendMessageLpMethod · 0.85
readOnceMethod · 0.85
NewSessionMethod · 0.85
topicUnregMethod · 0.85
stopTopicsForUserMethod · 0.85
queueOutMethod · 0.85
largeFileServeHTTPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…