MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / get_ram_details

Function get_ram_details

agentops/helpers/system.py:127–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126
127def get_ram_details():
128 try:
129 ram_info = psutil.virtual_memory()
130 return {
131 "Total": f"{ram_info.total / (1024**3):.2f} GB",
132 "Available": f"{ram_info.available / (1024**3):.2f} GB",
133 "Used": f"{ram_info.used / (1024**3):.2f} GB",
134 "Percentage": f"{ram_info.percent}%",
135 }
136 except:
137 return {}
138
139
140def get_disk_details():

Callers 1

get_host_envFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…