Re: Finding out in code how much memory my application uses
Re: Finding out in code how much memory my application uses
- Subject: Re: Finding out in code how much memory my application uses
- From: Jason Coco <email@hidden>
- Date: Mon, 8 Sep 2008 21:18:29 -0400
I would suggest using the DTrace stuff... either using instruments or
using DTrace scripts directly... there is tons of good information
about DTrace at google.
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 (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:
@gmail.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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