usertime and systime
Dan Nelson
dnelson at allantgroup.com
Wed Mar 16 22:41:24 UTC 2011
In the last episode (Mar 16), Kostik Belousov said:
> On Wed, Mar 16, 2011 at 12:56:14PM -0500, Dan Nelson wrote:
> > In the last episode (Mar 16), Thiago Damas said:
> > > Hi,
> > > without procfs, there is a way to get usertime and systime from a
> > > running process?
> >
> > Try applying the attached patch to ps. I've had it for a while but
> > never submitted a PR.
> >
> > Heh. I've had it for a very long time.
> > http://lists.freebsd.org/pipermail/freebsd-hackers/2009-March/027918.html
>
> Yes, apparently, this is often requested feature.
>
> I dislike the copying of the existing code, sincere up to the comment that
> is not quite relevant (about interrupts in systime). I slightly
> reorganized the patch to reduce the copy/paste part of it.
>
> Do you have comments ?
I like it.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-hackers
mailing list