MCPcopy Create free account
hub / github.com/Tong89/smartNode / get_stats

Method get_stats

backend/core.py:2290–2293  ·  view source on GitHub ↗

获取统计数据(用于资源利用率API)

(self)

Source from the content-addressed store, hash-verified

2288 return data
2289
2290 def get_stats(self):
2291 """获取统计数据(用于资源利用率API)"""
2292 with self.lock:
2293 return self.stats.copy()
2294
2295 # ==========================================
2296 # 快照(Snapshot)支持

Calls

no outgoing calls