Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-priv way to collect job stats under Intel?



On 2006-07-31 at 18:27 by email@hidden (Peter Bierman):

>At 6:19 PM -0400 7/31/06, Jeffrey Johnson wrote:
>>Hello,
>>
>>  We're making a universal binary of an app that calls task_for_pid() 
>>on PPC to gather cputime statistics on demand for its child 
>>processes and displays the stats in a window in a ps-like fashion. 
>>(We retrieved the source for ps and found the task_for_pid() call).
>
>I'm not sure what stats you want to collect, but check out `man getrusage`.
>
>If that works, it's a much more portable way to accomplish that task.

I don't think this will work for the OP since it says "BUGS There is no way to obtain information about a child process that has not yet terminated." and what he is looking for is information about the active child processes.

[fletcher]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Non-priv way to collect job stats under Intel? (From: Peter Bierman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.