mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
Update websocket_server.py
This commit is contained in:
parent
0489003dd4
commit
708ea3adf3
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class WebSocketServer:
|
||||||
def _start_perf_monitor(self):
|
def _start_perf_monitor(self):
|
||||||
async def print_stats():
|
async def print_stats():
|
||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(30) # 每5分钟输出一次
|
await asyncio.sleep(30) # 性能统计时间设置(秒)
|
||||||
summary = monitor.get_summary()
|
summary = monitor.get_summary()
|
||||||
print("\n=== 模块性能统计 ===")
|
print("\n=== 模块性能统计 ===")
|
||||||
for module, stats in summary.items():
|
for module, stats in summary.items():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue