Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: APIs for CPU Time & RAM usage for current process.




Le 30 mai 08 à 12:08, Dan Ribe a écrit :

Hello Everyone,

I am searching for some APIs which can provide me information about the memory & CPU usage of my process. I tried searching the documentation & found two APIs like:
But none of these is providing the required information.

I am looking for the real memory usage of my process (in the same manner as displayed in the activity monitor under real memory column) & the total CPU time taken by my process (I need this for some comparison purpose).

Any help on this is highly appreciated. Any pointers to useful APIs can make my day.

Thanks a lot for your help in advance !

Do you need this to implement a fonctionality or to profile/analyse your application ? If this is to profile your application, you may use Shark, Malloc Debug and other profiling tools that are part of Xcode. 
If this is to implement a functionality, I think you have to fallback to BSD API (see getrusage()).

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >APIs for CPU Time & RAM usage for current process. (From: "Dan Ribe" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.