Enabled reports whether recording is currently on.
()
| 57 | |
| 58 | // Enabled reports whether recording is currently on. |
| 59 | func Enabled() bool { |
| 60 | mu.Lock() |
| 61 | defer mu.Unlock() |
| 62 | return enabled |
| 63 | } |
| 64 | |
| 65 | // SetEnabled flips recording on or off. The UI calls this from the /debug |
| 66 | // slash command. Disabling does not clear the ring — old events stick around |