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:

instruments allocations

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

enter image description here

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:

  1. i'd suggest watching wwdc 2012 video, learning instruments.

  2. 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.

  3. 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.

  4. 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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -