ringa_lee2017-04-17 16:51:20
Suppose you run the program ./test. After running (or while running), enter ps aux | grep test
, and the meaning of the returned information is ps aux | grep test
,返回的信息含义为
这其中就有CPU使用、内存使用情况,以及运行时间。
特别的,如果需要在程序运行中实时查看这些信息,输入top | grep test
,就会每一秒显示一次,Ctrl + C
top | grep test
, it will be displayed once every second, and Ctrl + C
will exit. 🎜