usertime and systime
Devin Teske
dteske at vicor.com
Wed Mar 16 17:39:26 UTC 2011
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at 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 <-
More information about the freebsd-hackers
mailing list