伊莉討論區

標題: 執行後輸出CPU使用率 [打印本頁]

作者: phes10529    時間: 2019-6-4 04:06 PM     標題: 執行後輸出CPU使用率

系統是使用CentOS Linux release 7.3.1611

gcc -fopenmp main.c -o test
執行
./test
想要顯示CPU使用率要怎麼用呢??

code
作者: stephenwei_lu    時間: 2019-6-5 03:08 PM

這個?

https://stackoverflow.com/questi ... le-process-on-linux

作者: z1090128    時間: 2019-8-30 08:38 PM

top或htop都可以,htop可以顯示較完整的資訊




歡迎光臨 伊莉討論區 (http://www45234.eyny.com/) Powered by Discuz!