usertime and systime

2011-03-16 Thread Thiago Damas
Hi, without procfs, there is a way to get usertime and systime from a running process? Thiago ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers

Re: usertime and systime

2011-03-16 Thread Devin Teske
On Wed, 2011-03-16 at 14:02 -0300, Thiago Damas wrote: Hi, without procfs, there is a way to get usertime and systime from a running process? Maybe: ps axwwwo pid,time,command According to ps(1): time ... accumulated cpu time, user + system Unfortunately, I'm not able to find

Re: usertime and systime

2011-03-16 Thread Dan Nelson
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

Re: usertime and systime

2011-03-16 Thread Thiago Damas
Hi, the patch worked for me, using RELENG_8_2 Very thanks! Thiago 2011/3/16 Dan Nelson dnel...@allantgroup.com: 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

Re: usertime and systime

2011-03-16 Thread Devin Teske
On Wed, 2011-03-16 at 12:56 -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

Re: usertime and systime

2011-03-16 Thread Kostik Belousov
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

Re: usertime and systime

2011-03-16 Thread Mark Felder
On Wed, 16 Mar 2011 14:42:22 -0500, Devin Teske dte...@vicor.com wrote: +1 useful. I'd like to see this committed. Agreed. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

Re: usertime and systime

2011-03-16 Thread Dan Nelson
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