系统、进程CPU、内存、磁盘信息输出
processName = "pycharm64.exe"
进程信息如下:
{
"status": "running",
"pid": 14316,
"name": "pycharm64.exe",
"create_time": "2022-09-05_09:45:27",
"memory": {
"total_percent": "56.0%",
"total": "15.8GB",
"available": "7.0GB",
"used": "8.9GB",
"free": "7.0GB",
"p_memory_percent": "12.1%",
"p_memory_uss": "1.85GB"
},
"cpu": {
"cpu_total_percent": "31.3%",
"p_cpu_percent": "39.1%"
}
}
磁盘信息如下:
{
"C:\\": {
"total": "222GB",
"used": "121GB",
"free": "100GB",
"percent": "54.8%"
},
"D:\\": {
"total": "160GB",
"used": "88GB&#