Re: Need help with Instruments 2.0.1
Re: Need help with Instruments 2.0.1
- Subject: Re: Need help with Instruments 2.0.1
- From: David Duncan <email@hidden>
- Date: Wed, 6 Jan 2010 09:39:37 -0800
On Jan 5, 2010, at 3:51 PM, Ricky Sharp wrote:
> Now, the run appears to be "holding on" to larger blocks of memory dealing with CoreGraphics (zone_malloc)
>
> For example, hopping between two screens...
>
> Screen 1 is loaded and screen 2 is then loaded (separate nib). Three images are loaded and displayed on screen 2. But, going back to screen 1, not all these resources are being collected. That does make some sense as I believe the iPhone OS will attempt to cache images that you've previously loaded. But, I've usually seen the OS begin to purge said cache when the overall usage hit a certain watermark (4 MB?) Perhaps that watermark has been set higher?
This seems a side issue to the rest of the thread, but the likely explanation for this is that images from an xib are loaded with +imageNamed:, which will cause the image to be decompressed (thus creating an allocation in the CGImage or CoreAnimation zones). When a memory warning arrives, the image cache is purged of unused images.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden