IOS Burst Tracking

I have an iOS 3.2 program running on an iPad focused on a document. Sometimes when closing a document, a burst of memory appears in the tools. I am sure that I am not a memory leak, since the distribution graph remains fairly stable between 5 mb and 10 mb, except in cases of closure, where it increases by about 5 mb or so (and the leak tool shows very small leaks, a few k total , nothing that I would expect to cause a crash).

This seems to cause iOS to bother and discard my application. Memory usage never occurs in about 12 mb, but the error log report shows that it uses 19988 "Count-Resident Pages", which is a way much higher than anything else.

My problem is that I have no idea where the spikes occur or why. This is the same code, over and over, and sometimes the document will splash, in other cases it will not. There seems to be no way to use both debuggers to go through the code and tools to see what happens at the same time, so I'm not sure how to track this issue.

Is there a way to see memory usage in the debugger?

+3
source share
1 answer

IIRC tools should have an Allocations tool that shows you what all this memory requires. If you open the right sidebar, additional information will appear that shows the path to the code that he used for this selection.

0

Source: https://habr.com/ru/post/1764764/


All Articles