Finding out in code how much memory my application uses
Finding out in code how much memory my application uses
- Subject: Finding out in code how much memory my application uses
- From: "Aaron VonderHaar" <email@hidden>
- Date: Mon, 8 Sep 2008 18:04:53 -0700
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 (email@hidden)
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:
This email sent to email@hidden