On 11 Feb 2014, at 16:46, Jens Alfke <[email protected]> wrote:
> One of our QA engineers is writing some performance testing tools for our iOS 
> library. We'd like to record the amount of available RAM as part of the test 
> results, since it can affect the numbers. I don't know how to determine this, 
> however; anyone know an API for it?
> 
> (I'm well aware that on most modern operating systems "available RAM" is not 
> a very informative number because virtual memory makes RAM and address space 
> very different things. But on iOS, as I understand it, there is no swap file 
> and address space is always allocated out of physical RAM.)
> 
> Failing that, is there at least API for determining how much RAM is installed 
> on the device? This isn't reported anywhere in the Settings app, as far as I 
> can tell.


 I think [NSProcessInfo.processInfo physicalMemory] should do the trick.

-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."




_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to