SetWriter sets the writer into which stats are written. SetWriter must be called before Run().
(w io.Writer)
| 47 | // SetWriter sets the writer into which stats are written. |
| 48 | // SetWriter must be called before Run(). |
| 49 | func (sd *StatsDumper) SetWriter(w io.Writer) { sd.w = w } |
| 50 | |
| 51 | func (sd *StatsDumper) dumpNow() { |
| 52 | sd.lock.Lock() |
no outgoing calls