頁:
[1]
執行後輸出CPU使用率
系統是使用CentOS Linux release 7.3.1611gcc -fopenmp main.c -o test
執行
./test
想要顯示CPU使用率要怎麼用呢??
code<div></div> 這個?
https://stackoverflow.com/questions/1221555/retrieve-cpu-usage-and-memory-usage-of-a-single-process-on-linux
top或htop都可以,htop可以顯示較完整的資訊
頁:
[1]