How do you detect memory leaks on iPhone?

后端 未结 13 2384
既然无缘
既然无缘 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条回答
  • 2020-12-07 15:41

    I've written up a Tutorial on using Instruments to track iPhone memory leaks. I'm not sure if it will help you with what you're dealing with or not...couldn't hurt, though. :-)

    http://www.streamingcolour.com/blog/tutorials/tracking-iphone-memory-leaks/

    0 讨论(0)
  • 2020-12-07 15:43
    Run -> Start with Performance Tool -> Leaks
    
    0 讨论(0)
  • 2020-12-07 15:44

    Leaks application that can be found in Xcode: run -> Start with Performance Tool -> Leaks.

    Apple’s Instruments utility that can be found in /Developer/Applications/Performance Tools.

    0 讨论(0)
  • 2020-12-07 15:46

    To detect memory leaks you can use the "build and analyze" function of Xcode.

    Simply select Build -> Build and Analyze in the Xcode menu.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-07 15:54

    Use LLVM/Clang Static Analyzer.

    0 讨论(0)
提交回复
热议问题