MCPcopy Create free account
hub / github.com/apache/fory / get_system_info

Function get_system_info

benchmarks/javascript/benchmark_report.py:94–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93
94def get_system_info():
95 info = {
96 "OS": f"{platform.system()} {platform.release()}",
97 "Machine": platform.machine(),
98 "Processor": platform.processor() or "Unknown",
99 }
100 if HAS_PSUTIL:
101 info["CPU Cores (Physical)"] = psutil.cpu_count(logical=False)
102 info["CPU Cores (Logical)"] = psutil.cpu_count(logical=True)
103 info["Total RAM (GB)"] = round(psutil.virtual_memory().total / (1024**3), 2)
104 return info
105
106
107def parse_benchmark_name(name):

Callers 1

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected