Async publish a value (add a sample) to a histogram variable.
(name string, val float64)
| 118 | |
| 119 | // Async publish a value (add a sample) to a histogram variable. |
| 120 | func 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. |
| 130 | func statsShutdown() { |
no outgoing calls
no test coverage detected
searching dependent graphs…