site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=OEYT7sXRlm1S+T23TZPe8EG6kX5n96RJZg8Fw5hVr/bM+7PJH6p/2GhFqsoATtHSLLuqMEisaVlAN5wGqq+XWgpLmXjTP5nNA10cXydhJ69oPMSclG60Ptdc7k48X7lFYByVU3MF92QE6lzF8UICmLeziGTX8UYZxeXxZgSQCww= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=Zw49sR8oCDNznh9WIAfq3buLrYvt/ZGKdjT+CYE9TWcZZSCvaTBi0k4wmsaNeTKgtry+5XSZe7jPVpfByB8k2fxyvPK5usLzJAngzKgcmXYZzv24a+FF3jy/gusYnuHzdRJymqjLnUwDQ/WLMtPZeB1Yo+Hzy90RDsgVClm8u/A= Thanks in advance. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I've posted this query on darwin-dev without any luck, and am hoping this is a more appropriate forum for my question. I am working on a project which needs to collect some system usage statistics on a per-process (task?) basis. I need to be able to retrieve the following: CPU usage (system and user), VM statistics (resident memory, wired memory, page faults), and I/O statistics (reads/writes both to/from block devices and network devices). By looking at the source code to top, I have learned how to do the CPU and VM stat collection, but the only ways I've found to do I/O accounting are on a per device (disk or network interface) basis, not per-process, task, or thread. Could someone please help me find where these numbers are kept? Any help with sample code, or documentation, or just pointing me in the right direction would be greatly appreciated. This email sent to site_archiver@lists.apple.com
participants (1)
-
Thomas Inskip