add pympler

This commit is contained in:
jxxghp
2025-06-08 18:54:35 +08:00
parent 0835a75503
commit a18040ccfa
5 changed files with 340 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from app.helper.memory import MemoryHelper
def init_memory_manager():
"""
初始化内存监控器
"""
MemoryHelper().start_monitoring()
def stop_memory_manager():
"""
停止内存监控器
"""
MemoryHelper().stop_monitoring()