Dear all,
I've looked but not found (and I hope I'm in the right group here): Is
there a way to get the user time and system time of a /running/ child
from its parent (without having to mount procfs)? As far as I was able
to tell, I can get the total of user and system time using
kvm_getprocs, but
>> I've looked but not found (and I hope I'm in the right group here): Is
>> there a way to get the user time and system time of a /running/ child
>> from its parent (without having to mount procfs)?
>
> If you have only one child, there's getrusage(2).
Unfortunately, that only works for children
> It's not as portable as getrusage(2), but you could probably get the
> information you want using libkvm's kvm_getprocs(3) function. The
> information available is defined in the kinfo_proc structure in
> /usr/include/sys/user.h.
Unfortunately, as far as I can see the kinfo_proc structure only c
That's it! Thanks! Problem solved :-)
Jay
On Thu, Nov 19, 2009 at 5:34 PM, Dan Nelson wrote:
> In the last episode (Nov 19), Koffie Yahoo said:
>> > It's not as portable as getrusage(2), but you could probably get the
>> > information you want using libkvm&
4 matches
Mail list logo