Skip to content

Conversation

Zeyi-Lin
Copy link
Member

@Zeyi-Lin Zeyi-Lin commented Jun 10, 2024

Description

  1. "pid":增加了对PID(进程号)的记录
  2. "python_verbose":增加了对Python详细版本信息的记录
    return {
        "swanlab": {"version": version, "logdir": logdir},  # swanlab 版本号和日志目录
        "hostname": socket.gethostname(),  # 主机名
        "os": platform.platform(),  # 操作系统
        "python": platform.python_version(),  # python版本
        "python_verbose": sys.version,  # python详细版本
        "executable": sys.executable,  # python 解释器路径
        "git_remote": __get_remote_url(),  # 获取远程仓库的链接
        "cpu": multiprocessing.cpu_count(),  # cpu 核心数
        "gpu": __get_gpu_info(),  # gpu 相关信息
        "git_info": __get_git_branch_and_commit(),  # git 分支和最新 commit 信息
        "command": __get_command(),  # 完整命令行信息
        "memory": __get_memory_size(),  # 内存大小
        "cwd": __get_cwd(),  # 当前工作目录路径
        "pid": os.getpid(),  # 当前进程ID
    }

@Zeyi-Lin Zeyi-Lin requested a review from SAKURA-CAT June 10, 2024 18:32
@Zeyi-Lin Zeyi-Lin self-assigned this Jun 10, 2024
@SAKURA-CAT SAKURA-CAT added the 💪 enhancement New feature or request label Jun 11, 2024
@SAKURA-CAT SAKURA-CAT merged commit dc55269 into main Jun 11, 2024
@SAKURA-CAT SAKURA-CAT deleted the feat/environment-more branch June 11, 2024 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💪 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants