我试图获取单个进程(python py文件)从初始化到终止的资源使用情况 . 我使用ps和top,但它没有给我这个过程从出生到死亡消耗了多少资源 . 有什么方法可以跟踪单个进程的资源使用情况,该进程将运行大约5秒钟并且死掉?谢谢!
为您的应用程序制作分析器非常容易
sudo apt install htop
htop
find your process name
希望它有效,我是编程新手
1 回答
为您的应用程序制作分析器非常容易
sudo apt install htop
htop
find your process name
希望它有效,我是编程新手