()
| 159 | |
| 160 | |
| 161 | def 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 | ) |
no outgoing calls
no test coverage detected