MCPcopy Index your code
hub / github.com/MCSLTeam/MCSL2 / genSysReport

Function genSysReport

MCSL2Lib/ProgramControllers/logController.py:161–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160
161def genSysReport() -> str:
162 sysInfo = (
163 f"{systemType()} {'11' if int(systemVersion().split('.')[-1]) >= 22000 else '10'} {systemVersion()}" # noqa: E501
164 if systemType() == "Windows" and systemRelease() == "10"
165 else f"{systemType()} {systemRelease()}"
166 )
167 return (
168 f"MCSL2 版本: {MCSL2VERSION} {DEV_VERSION}\n"
169 f"Python 版本: {pythonVersion()}\n"
170 f"Qt 版本: {qVersion()}\n"
171 f"QFluentWidgets 版本: {pfwVer}\n"
172 f"操作系统: {sysInfo}\n"
173 f"CPU: {systemProcessor()}\n"
174 f"架构: {systemArchitecture()[0]}\n"
175 f"内存占用: {str(round(Process(getpid()).memory_full_info().uss / 1024 / 1024, 2))} MB"
176 )

Callers 2

generateSystemReportMethod · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected