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

@@ -247,6 +247,12 @@ class ConfigModel(BaseModel):
REPO_GITHUB_TOKEN: Optional[str] = None
# 大内存模式
BIG_MEMORY_MODE: bool = False
# 是否启用内存监控
MEMORY_ANALYSIS: bool = False
# 内存快照间隔(分钟)
MEMORY_SNAPSHOT_INTERVAL: int = 5
# 保留的内存快照文件数量
MEMORY_SNAPSHOT_KEEP_COUNT: int = 30
# 全局图片缓存,将媒体图片缓存到本地
GLOBAL_IMAGE_CACHE: bool = False
# 是否启用编码探测的性能模式