Search code examples
objective-cmacosmemory-managementautomatic-ref-countingdealloc

Xcode memory profiler ARC disable


I developed OSX project in objective-c. I disabled ARC and I dealloc(release) memory manually. Is in xcode any tool, which can show me that I forget release any objects?


Solution

  • Nowadays i would recommend using ARC. But back then, when it wasn't available, the Profiler "Leaks" Tool did a pretty good job for me. You can see total allocations and potential leaks there. You can start it by clicking Product --> Profile --> Leaks . That's doing a analysis on runtime. The Product --> Analyse Tool can analyse your code statically and show up further potential leaks (The arrows it draws can be a little confusing at the beginning).