Async publish an increment (decrement) to int variable.
(name string, val int)
| 108 | |
| 109 | // Async publish an increment (decrement) to int variable. |
| 110 | func 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. |
| 120 | func statsAddHistSample(name string, val float64) { |
no outgoing calls
no test coverage detected
searching dependent graphs…