Re: Memoryleak in SpriteKit?
Re: Memoryleak in SpriteKit?
- Subject: Re: Memoryleak in SpriteKit?
- From: Jens Alfke <email@hidden>
- Date: Wed, 09 Apr 2014 07:58:29 -0700
On Apr 9, 2014, at 3:45 AM, Alexander Reichstadt <email@hidden> wrote:
> This code is bound to a menu item method test. When looking at memory in Xcode I would expect for it before adding any children to be identical to after removing all children. But memory steadily increases.
Try using Instruments, since it has tools for actually measuring and tracking down memory leaks. For quickie checks, the ‘leaks’ tool is useful too.
Frankly, I don’t even know what that memory-usage graph in Xcode’s debugger pane is showing. I’ve found that “memory usage” is a slippery concept in a modern OS, and unless you know exactly what you’re looking at, it’s easy to draw the wrong conclusions. (Obvious example: people looking at VMSIZE and thinking their app is using a gigabyte of RAM.)
—Jens
_______________________________________________
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