This commit is contained in:
jxxghp
2025-06-03 11:49:16 +08:00
parent e48d51fe6e
commit 841209adc9
2 changed files with 4 additions and 2 deletions

View File

@@ -19,7 +19,8 @@ class MemoryManager(metaclass=Singleton):
self._monitoring = False
self._monitor_thread: Optional[threading.Thread] = None
def get_memory_usage(self) -> dict:
@staticmethod
def get_memory_usage() -> dict:
"""
获取当前内存使用情况
"""
@@ -155,4 +156,4 @@ def clear_large_objects(*objects):
elif hasattr(obj, '__dict__'):
obj.__dict__.clear()
del obj
gc.collect()
gc.collect()

View File

@@ -254,6 +254,7 @@ class RssHelper:
return False
if ret:
ret_xml = None
try:
# 检查响应大小避免处理过大的RSS文件
raw_data = ret.content