get accounting info for running process
Mel Flynn
mel.flynn+fbsd.questions at mailing.thruhere.net
Thu Nov 19 01:59:51 UTC 2009
On Wed, 18 Nov 2009 20:18:08 +0300, cronfy <cronfy at sprinthost.ru> wrote:
> Is it possible to find out how much a process have used CPU user
> time/system time/IO operations for now by it's pid? Like in sa, but for
> running process.
>
> Thanks in advance.
man procfs(5), specifically, the status file.
% cat /proc/2143/status
Xorg ... 1255690702,469845 177507,790130 115403,436713 ...
^starttime^^^^^^^ ^usertime^^^^ ^system time^
--
Mel
More information about the freebsd-questions
mailing list