HI
I‘ve been playing about with instruments and the memory graph, basically testing progress on my first app, and I’m completely confused.
My app has several view controllers, uses images, maps and core data etc., and I‘m almost certain I don’t have any retain cycles and I’ve checked all my classes and view controllers are deinitialising, as well as removing map delegate and the map from its super view. I’m also using capture lists in closures, setting variables to nil and purging arrays etc. when no longer needed.
However, if I profile the app in instruments, looking for leaks, it tells me I have maybe a dozen or so. If I run through the same processes in the app using the debug memory graph, no leaks or other runtime issues are reported. Memory usage according to Xcode peaks at around 120mb and settles back down to about 70mb. In instruments, although leaks are reported drilling down through the detail and looking at the related source code isn’t telling me anything that helps.
My questions then are:
a) are there a lot of false positives, relating to leaks, in instrument?
b) does anyone have a link relating to finding memory leaks with instruments that doesn’t simply create a retain cycle that could be spotted from a hundred miles away? I.e. something real world. I’m struggling to relate the massive amount of information in instruments to actual issues.
Thanks very much :-]