获取运行时信息快照
()
| 16 | |
| 17 | |
| 18 | def get() -> RuntimeSnapshot: |
| 19 | """获取运行时信息快照""" |
| 20 | return RuntimeSnapshot( |
| 21 | os=get_os(), |
| 22 | os_pretty=get_os_pretty(), |
| 23 | hostname=get_hostname(), |
| 24 | pid=get_pid(), |
| 25 | cwd=get_cwd(), |
| 26 | python_version=get_python_version(), |
| 27 | python_verbose=get_python_verbose(), |
| 28 | python_executable=get_python_executable(), |
| 29 | command=get_command(), |
| 30 | ) |
| 31 | |
| 32 | |
| 33 | @safe.decorator(level="debug", message="Failed to get runtime os") |
nothing calls this directly
no test coverage detected