iOS Development-Memory static analysis

Source: Internet
Author: User

Tools used: Product--Analyze


The tool is simple to use and can perform memory analysis during code compilation to identify potential memory leaks in your code. Without the need to actually run.


At the end of the analysis, you will get information similar to warring and error in issue navigator:


Points of each memory leak are pointed out.


which

Dead Store

Value stored to ' xxxx ' is never read


Indicates that a variable is defined but not used.


Memory (Core foundation/objective-c)

Potential leak of an object stored into ' xxxx '


Indicates that the object has a potential leak.


Other types of hints are not listed here.


Workaround:

Click on the message and it will be directed to the location of the corresponding code:


Clicking on the message following the code will show the interactive details:


Then follow the prompts to modify the relevant code.









Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

iOS Development-Memory static analysis

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.