iOS uses instrument's leaks to find code memory leaks

Source: Internet
Author: User

Here is some tips for finding leaks in our project:


1. Open the Instruments Debug Tool control bar, Xcode, open Dev tool, Instruments



2. Select the Leaks tool



3. Set leaks option Select leaks, select Call Tree



4.Run your App!



5. Set the call tree to select Invert call tree, Hide System Libraries, and then select the leaks project target for your executed app, click on the red circle to execute, operate your app, there is a red bar to represent a memory leak. Check the corresponding code, solve!



iOS uses instrument's leaks to find code memory leaks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.