• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
looking for System APIs for load monitoring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

looking for System APIs for load monitoring


  • Subject: looking for System APIs for load monitoring
  • From: Marc Lohse <email@hidden>
  • Date: Tue, 18 Aug 2009 09:30:51 +0200
  • Acceptlanguage: de-DE
  • 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: looking for System APIs for load monitoring
      • From: Mo McRoberts <email@hidden>
  • Prev by Date: Re: Trials and Tribulations building DirectoryService
  • Next by Date: Reading system framework information through Stabs file ?
  • Previous by thread: Re: Trials and Tribulations building DirectoryService
  • Next by thread: Re: looking for System APIs for load monitoring
  • Index(es):
    • Date
    • Thread