def read_pid_stat(pid="self"):
    """
    Returns system process stat information.

    :param pid: The process ID.
    :returns: The system stat information.
    :rtype: dict
    """
    with open("/proc/%s/stat" % (pid,), "rb") as f:
        stat = f.readline().split()
    return {
        "utime": int(stat[13]),
        "stime": int(stat[14]),
        "cutime": int(stat[15]),
        "cstime": int(stat[16]),
    }
Returns system process stat information.

    :param pid: The process ID.
    :returns: The system stat information.
    :rtype: dict