How do you detect memory leaks on iPhone?

后端 未结 13 2433
既然无缘
既然无缘 2020-12-07 15:20

I\'m using the Leaks Instruments feature through Xcode to (try and) find memory leaks. I still haven\'t figured out how to use this program. I click Leaks in the program and

13条回答
  •  萌比男神i
    2020-12-07 15:54

    I'm not familiar with how to use Leaks, but you can always try running the Clang analyzer on your code to see if that'll turn anything up: http://clang.llvm.org/StaticAnalysis.html. It can often find many bugs that might lead to memory leaks.

提交回复
热议问题