looking for System APIs for load monitoring
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: Acof1c/nC81uz0JR2EmfTCT4HHe//A== Thread-topic: looking for System APIs for load monitoring I am developing an application that needs to monitor the system's CPU and IO load while it's running to be able to identify a low system load and only do it's resource-hungry work while the system is not busy doing other things. I've been searching for the low-level system API that would give me access to this kind of information but i have not yet found exactly what i need - functions like host_processor_info supply the overall CPU usage which is nice, but i need to know the CPU usage of each individual process. The kind of information i need is essentially what's supplied by the ps -axv command. But i don't want to solve my problem by calling ps as an external task - i am sure there is a more elegant way to get the info directly. Could anybody help me by pointing me to some source of documentation (maybe i am stupid or looking in the wrong place but i did not find the info in the documentation supplied with Xcode) and/or maybe some code examples. thanks a lot _______________________________________________ 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)
-
Marc Lohse