Re: Memory usage: Xcode vs. Instruments, who is right?
Re: Memory usage: Xcode vs. Instruments, who is right?
- Subject: Re: Memory usage: Xcode vs. Instruments, who is right?
- From: Scott Ribe <email@hidden>
- Date: Sat, 07 Dec 2013 08:35:15 -0700
On Dec 7, 2013, at 8:05 AM, Robert Martin <email@hidden> wrote:
> Thanks Scott, You were absolutely right - I had Zombies enabled. After I switched them off, the Xcode memory footprint stopped growing, and jives with what I see in ‘top’ and ActivityMonitor. To be honest, I never knew about this side effect!
Yeah, it seems innocent enough ;-) But, just for one example, if there's a timer periodically firing, and it allocates and frees anything, then there you are: constantly increasing memory usage, even when idle.
As a side note: this is one of the best things about 64-bit for developers. In 32-bit, if you have an application that is data-intensive, and allocates and frees a lot of small objects, you actually can't fully test that you're not accessing blocks after they're freed, because tracking "freed" blocks and monitoring for access will exhaust your address space. Speaking from personal experience...
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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