[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Getting running time of child
From:       Koffie Yahoo <koffieyahoo () gmail ! com>
Date:       2009-11-19 20:15:35
Message-ID: 9cb658f10911191215w783c6406j5aca01ba92e6ad4d () mail ! gmail ! com
[Download RAW message or body]

That's it! Thanks! Problem solved :-)

Jay

On Thu, Nov 19, 2009 at 5:34 PM, Dan Nelson <dnelson@allantgroup.com> 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'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 contains
>> the sum of user time and system time and not the two values separately,
>> or have I missed something?
>
> Take a look at the the ki_rusage struct inside kinfo_proc.
>
> --
>        Dan Nelson
>        dnelson@allantgroup.com
>
_______________________________________________
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"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic