• 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
Re: How do I get memory usage numbers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get memory usage numbers?


  • Subject: Re: How do I get memory usage numbers?
  • From: Charlie Dickman <email@hidden>
  • Date: Sun, 12 Aug 2012 22:10:43 -0400

Initially I'm interested in system wide memory usage (free, wired,active, inactive) but following on I might like numbers for just my process.
If hacking through Darwin is the only way to do this than never mind but with all of the programs out there that include these numbers there must be a better way to find out how it's done.

On Aug 12, 2012, at 7:17 PM, Jens Alfke wrote:

>
> On Aug 12, 2012, at 3:21 PM, Charlie Dickman <email@hidden> wrote:
>
>> How do I get system memory usage numbers within my app?
>
> What kind of memory usage numbers? There are a lot of different ones — take a look at the man page for 'top', or at all the different views in Activity Monitor. And do you want them for all processes or just your own?
>
> (The general answer is to go look up the source to 'top' in the Darwin open source repo and see how it does it. It's using some low-level system calls that I don't believe are documented otherwise.)
>
> —Jens

Charlie Dickman
email@hidden



_______________________________________________

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: How do I get memory usage numbers?
      • From: David Duncan <email@hidden>
    • Re: How do I get memory usage numbers?
      • From: Jens Alfke <email@hidden>
References: 
 >How do I get memory usage numbers? (From: Charlie Dickman <email@hidden>)
 >Re: How do I get memory usage numbers? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Forcing IB in Xcode 4.4 to notice a change
  • Next by Date: __weak pointer collection firing prematurely???
  • Previous by thread: Re: How do I get memory usage numbers?
  • Next by thread: Re: How do I get memory usage numbers?
  • Index(es):
    • Date
    • Thread