* 启动调试监控
()
| 144 | * 启动调试监控 |
| 145 | */ |
| 146 | public start(): void { |
| 147 | if (this.updateTimer) { |
| 148 | logger.warn('Debug monitoring already started'); |
| 149 | return; |
| 150 | } |
| 151 | |
| 152 | logger.info('Starting debug monitoring'); |
| 153 | |
| 154 | this.updateTimer = setInterval(() => { |
| 155 | this.logStats(); |
| 156 | }, this.updateInterval); |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * 停止调试监控 |