摘要: 安装 pip3 install psutil 获取应用pid,然后获取内存大小 get_pid_cmd = "ps -ef | grep 'test' | grep -v grep | awk '{print $2}'" agent_memory_pid = subprocess.getoutput 阅读全文
posted @ 2022-05-16 18:00 Tarzen 阅读(132) 评论(0) 推荐(0)