CPU user/kernel time given the PID
Jay Loden
freebsd at jayloden.com
Mon Mar 9 06:35:41 PDT 2009
Dan Nelson wrote:
> I was wondering why you were having so much trouble finding what you were
> looking for, and then I realized I have a patch that I have never submitted
> a PR for: the addition of "systime" and "usertime" ps keywords :) It simply
> reads the rusage struct, and returns the same values that getrusage() does.
Dan, this is great, exactly what I was looking for, didn't think to look for
'rusage' in the values in kinfo_proc. Thanks!
-Jay
More information about the freebsd-hackers
mailing list