You can also look at /usr/include/mach directory for various mach calls regarding process statistics, including memory usage (all the stats can be grok'd from there including phyiscal memory used, virtual memory used, wired memory used as well as faults and other memory info)...
On Sep 8, 2008, at 21:04 , Aaron VonderHaar wrote:
Hi, I am trying to write some automated scenario tests that verify that my application meets it's the memory usage constraint requirements. What API is available to find out how much memory an application/process/thread has allocated? I have looked at the documentation for NSZone, NSProcessInfo, NSThread, NSAutoreleasePool, NSTask, NSApplication, the "Interacting with the Operating System" guide and the "Memory Management Programming Guide for Cocoa" guide but I have not found any information about how to find out the number of pages, bytes or objects that are in use. Has anyone accessed this type of information in their own programs? Thanks, --Aaron VonderHaar _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/cocoa-dev/jason.coco %40gmail.comThis email sent to [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]