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

Function statsAddHistSample

server/stats.go:120–127  ·  view source on GitHub ↗

Async publish a value (add a sample) to a histogram variable.

(name string, val float64)

Source from the content-addressed store, hash-verified

118
119// Async publish a value (add a sample) to a histogram variable.
120func statsAddHistSample(name string, val float64) {
121 if globals.statsUpdate != nil {
122 select {
123 case globals.statsUpdate <- &varUpdate{varname: name, value: val}:
124 default:
125 }
126 }
127}
128
129// Stop publishing stats.
130func statsShutdown() {

Callers 2

queueOutMethod · 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…