()
| 11 | const samples = new Map<string, number>() |
| 12 | |
| 13 | const active = () => sampling && !win.isDestroyed() && !win.webContents.isDestroyed() |
| 14 | const clearTimers = () => { |
| 15 | if (sampleTimer) clearTimeout(sampleTimer) |
| 16 | if (stopTimer) clearTimeout(stopTimer) |