Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 16:59:48 -0900
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        cronfy <cronfy@sprinthost.ru>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: get accounting info for running process
Message-ID:  <5f09d2bccc69d1f101c5c22151ef0c05@sbmail.office-on-the.net>
In-Reply-To: <4B042C50.6060904@sprinthost.ru>
References:  <4B042C50.6060904@sprinthost.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Nov 2009 20:18:08 +0300, cronfy <cronfy@sprinthost.ru> wrote:

> Is it possible to find out how much a process have used CPU user=20
> time/system time/IO operations for now by it's pid? Like in sa, but for=
=20
> running process.
>=20
> 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^
--=20
Mel




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5f09d2bccc69d1f101c5c22151ef0c05>