Re: Determining available or installed RAM on iOS device?
Re: Determining available or installed RAM on iOS device?
- Subject: Re: Determining available or installed RAM on iOS device?
- From: Uli Kusterer <email@hidden>
- Date: Tue, 11 Feb 2014 18:00:08 +0100
On 11 Feb 2014, at 16:46, Jens Alfke <email@hidden> 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@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