• 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
Finding out in code how much memory my application uses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Finding out in code how much memory my application uses
      • From: "Michael Ash" <email@hidden>
    • Re: Finding out in code how much memory my application uses
      • From: Jason Coco <email@hidden>
  • Prev by Date: Re: How do create a DMG with license agreement?
  • Next by Date: Re: Finding out in code how much memory my application uses
  • Previous by thread: Crash in NSOpenPanel. Garbage collection thread
  • Next by thread: Re: Finding out in code how much memory my application uses
  • Index(es):
    • Date
    • Thread