Date: Wed, 16 Mar 2011 17:39:01 +0000 From: Devin Teske <dteske@vicor.com> To: Thiago Damas <tdamas@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: usertime and systime Message-ID: <1300297142.47040.36.camel@dt.vicor.com> In-Reply-To: <AANLkTikZi66aU7n%2BOiBg1bjx4Qv6JjY3_0GugwM4WSmh@mail.gmail.com> References: <AANLkTikZi66aU7n%2BOiBg1bjx4Qv6JjY3_0GugwM4WSmh@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 a way to get user time separate from system time ("time" -- aka "cputime" -- only gives combined "user" plus "system" time). > Thiago > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- -- Cheers, Devin Teske -> FUN STUFF <- -----BEGIN GEEK CODE BLOCK----- Version 3.12 GAT/CS/B/CC/E/IT/MC/M/MU/P/S/TW d+(++) s: a- C+++@$ UB++++$ P++++@$ L ++++$ E- W+++ N? o? K? w@ O M++$ V- PS+>++ PE@ Y+ PGP-> t(+) 5? X(+) R(-) tv+ b +>++ DI+ D+(++) G++ e>++++ h r+++ z+++ ------END GEEK CODE BLOCK------ Learn about the "Geek Code": http://www.geekcode.com/ -> LEGAL DISCLAIMER <- This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. -> END TRANSMISSION <-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1300297142.47040.36.camel>