No, the chart should not look like this. Deductions should usually fall down (with the exception of caches, and even those that should be discarded when they are cleared of memory pressure).
It makes no sense to worry about the distribution, however, until you fix the leak (s). It can do it. Repair the leak and repeat the above exercise and check if the distributions are flat. If not, other problems may arise. But fixing the leak could completely fix the situation.
In addition, if you have not already done so, run the tool through a static analyzer ("Analyze" in the Xcode Product menu or press shift + command + B ). Especially in the MRC code, which identifies many memory management issues. It is like magic. Before proceeding, make sure you have a clean account.
Then use the Leaks tool to pinpoint what is happening. You can then diagnose why this particular object is leaking. Correct this leak before continuing. See the “Leak Detection” section of the “User Guide” section.
Once you have done all this, you can repeat the process of your original question and see if the distributions continue to grow (for example, they may be caused by a save cycle). If you still have problems after fixing the leaks, as described above, there are methods in the tools for determining the type of incremental distributions that you can then use to track any further problems, if any.
For instance:
Run the Allocations tool, option -click and drag the distribution tool, and then you can look at the call tree and it will show you what memory consumption. See this answer for an example.
Run the Allocations tool. Let the application sink to its resting point. Click the Mark Heap button. Do a bunch of things. Return to the point where you think the material should have been released. Click Mark Heap again. Now look at this heap snapshot and look at the objects that were selected but not released between the two snapshots, and again you can diagnose what is happening.
But all this is a moot point until you fix the leak and the Leaks tool will leak the object more efficiently by the pin point than anything else. Correct it first, and then see where you are standing.
For more information, you can find some of the discussions in a helpful video in the IDC App: memory (especially in the demo sections).
source share