Re: Non-priv way to collect job stats under Intel?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 2006-07-31 at 18:27 by bierman@apple.com (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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
fletcher sandbeck