()
| 400 | |
| 401 | // --- REPL helpers ----------------------------------------------------------- |
| 402 | function stalking() { |
| 403 | console.log(`${C.green}=== currently stalking (${stalked.size}) ===${C.reset}`); |
| 404 | for (const [tid, s] of stalked) { |
| 405 | const scope = s.scope ? [...s.scope].join(",") : "ALL"; |
| 406 | console.log(` ${PID}:${s.name}#${tid} ${C.dim}events=${s.count} scope=${scope} since +${s.startedAt}ms${C.reset}`); |
| 407 | } |
| 408 | console.log(""); |
| 409 | } |
| 410 | |
| 411 | function stopAll() { |
| 412 | const ids = [...stalked.keys()]; |
nothing calls this directly
no outgoing calls
no test coverage detected