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: Ricky Sharp <email@hidden>
- Date: Tue, 5 Jan 2010 17:51:12 -0600
Something is going wacko on my system. A new run shows proper growth and shrinkage of the Malloc 16 allocations.
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?
--
Rick
On Jan 5, 2010, at 5:40 PM, Ricky Sharp wrote:
>
> In searching archives and the web, I only see threads involving the older version of Instruments. I'm using 2.0.1 which is part of the Xcode 3.2.1 running on Snow Leopard.
>
> Specifically, I have an iPhone OS app (already shipped; about to ship next version) and I'm now doing a final set of tests to ensure no leaks.
>
> I'm running the tests on real hardware (iPhone OS 3.0 on an iPod touch and iPhone OS 3.2.1 on an iPhone 3G).
>
> What I cannot figure out is the Live Bytes and #Living columns. To me, that's indicating the amount of memory currently allocated and how many objects (or mallocs of a particular size) are still allocated.
>
> I'm using the 'Leaks' template and I'm finding no leaks. Yet as I hop around my app, the Live Bytes and #Living columns continually grow. I'm seeing boatloads of Malloc X Bytes under the "Category" column where X is somme number like 16, 48.
>
> Drilling into those, I see many system calls like [NSBundle mainBundle] and [NSDateFormatter _regenerateFormatter]
>
> I don't see any trace of my code listed under the "responsible caller" column. There's no way my app is using 5+ MB (last time I checked Instruments).
>
> In some cases, I do see lines dealing with malloc that make sense. For example, "Malloc 8 KB"... says that over the lifetime of my run, app did 402 of those allocations. Yet only 4 are still being used.
>
> Finally, this is a release build. No malloc debugging symbols have been enabled and I don't have zombies enabled. In all my prior usages of Instruments (which was on Leopard running the prior version of Xcode), I never saw these strange results.
>
>
> ___________________________________________________________
> Ricky A. Sharp mailto:email@hidden
> Instant Interactive(tm) http://www.instantinteractive.com
>
>
>
> _______________________________________________
> 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
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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