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?
source
share