iOS App Memory profiling -
i've got issue ios app getting exponentially slower respond tap gestures.
it's alphabet game cycles through list of 26 pictures.
using instruments, looks memory footprint healty @ ~6-7 mb:

update: here shot of running app in profiler.. looks hungry - real memory usage (blue line) in 300 - 500 mb range..

i've not profiled before , find instruments app quite unintuitive. can give me high level pointer me started on narrowing down?
a couple of thoughts:
i'd suggest watching wwdc 2012 video, learning instruments.
the wwdc 2010 video, advanced memory analysis instuments might focus more on memory. there might superficial ui changes in instruments on last few years doesn't reflect, concepts , ideas still applicable.
the use of zombies wonderful finding on released items might have dangling pointers. incredibly useful in manual reference counting (mrc, i.e. have arc turned off), of less value in automatic reference counting (arc) world. achieves keeping track of "released" memory. consumes memory achieve this. i'd suggest turning off zombies once have resolved over-release problem, otherwise you'll see memory not returned app otherwise have.
especially if not using arc, check out static analyzer (press shift+command+b or choose "analyze" on "product" menu). identifies many routine memory management mistakes.
Comments
Post a Comment