Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)支持
Callers
7
get_resource_utilization
Function · 0.80
scenarios_save
Function · 0.80
update_simulation_metrics
Function · 0.80
test_returns_dict
Method · 0.80
test_contains_total_requests
Method · 0.80
test_contains_accepted_and_rejected
Method · 0.80
test_resource_utilization_is_dict
Method · 0.80
Calls
no outgoing calls
Tested by
4
test_returns_dict
Method · 0.64
test_contains_total_requests
Method · 0.64
test_contains_accepted_and_rejected
Method · 0.64
test_resource_utilization_is_dict
Method · 0.64