FreeBSD에서 procstat을 사용하면 프로세스에 대한 세부 정보를 얻을 수 있습니다. 예를 들어 메모리를 얻기위한 프로세스가 소모된다
procstat -r <PID>
예 출력 : 또한
# procstat -r 847
PID COMM RESOURCE VALUE
847 immortal user time 00:00:09.842315
847 immortal system time 00:00:26.680180
847 immortal maximum RSS 9884 KB
847 immortal integral shared memory 11960644 KB
847 immortal integral unshared data 1685608 KB
847 immortal integral unshared stack 573824 KB
847 immortal page reclaims 1126497
847 immortal page faults 176
847 immortal swaps 0
847 immortal block reads 57
847 immortal block writes 356464
847 immortal messages sent 13712
847 immortal messages received 2
847 immortal signals received 13708
847 immortal voluntary context switches 272454
847 immortal involuntary context switches 14765
, 당신은 예를 들어 cmdwatch와 top
을 사용할 수 있습니다 : 아마
cmdwatch -n1 'top -d 1 | grep 847'
뭔가를 같이'/ usr/bin/time -l perl myscript.pl' –