Collecting Usage Statistics
Collecting Usage Statistics
- Subject: Collecting Usage Statistics
- From: Thomas Inskip <email@hidden>
- Date: Wed, 9 May 2007 13:03:20 -0400
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.
Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden