Date: Wed, 16 Mar 2011 17:41:21 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Kostik Belousov <kostikbel@gmail.com> Cc: Thiago Damas <tdamas@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: usertime and systime Message-ID: <20110316224121.GC44561@dan.emsphone.com> In-Reply-To: <20110316201147.GS78089@deviant.kiev.zoral.com.ua> References: <AANLkTikZi66aU7n%2BOiBg1bjx4Qv6JjY3_0GugwM4WSmh@mail.gmail.com> <20110316175614.GB44561@dan.emsphone.com> <20110316201147.GS78089@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110316224121.GC44561>