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

Function get_cpu_details

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

Source from the content-addressed store, hash-verified

113
114
115def get_cpu_details():
116 try:
117 return {
118 "Physical cores": psutil.cpu_count(logical=False),
119 "Total cores": psutil.cpu_count(logical=True),
120 # "Max Frequency": f"{psutil.cpu_freq().max:.2f}Mhz", # Fails right now
121 "CPU Usage": f"{psutil.cpu_percent()}%",
122 }
123 except:
124 return {}
125
126
127def get_ram_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…