I use the tools in the ARC project (runs on the device) to make sure that I clear any forgotten memory. For this purpose, I use the distribution generation tool and take pictures of my heap for the same action 10-20 times. The fact that I'm embarrassed is growth. For some time, the growth is 0, and then another seems to accumulate a certain number of bytes (never sequential in the range from several bytes to several kilobytes). But usually there are at least a few iterations where the growth is 0.
My question is: if my height is sometimes 0, does this mean that my memory management is correct? Or do I still have problems that I need to resolve? I understand that a memory leak may take several cycles, but what about memory that is still allocated and remains even after> 10 iterations?
This seems like a more general question about the interpretation of tools, so I did not use any specific code. In addition, I found that this happens in various heap snapshot scenarios: pull to refresh, push view controller, etc.
Edit: I have included a snapshot of my tools window .
, , , 0 , .
, ( ), , Apple , . - Apple, , , "" , . , , - , Apple, , . , , . Apple - , - , . , , , .
- , . , , , , . , 0, - , .
Source: https://habr.com/ru/post/1527524/More articles:Проверьте, поддерживает ли IE8 чистый Javascript - javascriptВыберите или получите все значения из выпадающего массива Select, используя Jquery или JavaScript. - javascriptnumpy.i is missing. What is the recommended way to install it? - pythonAsk the dispatcher to send a response without a Content-Type header - ruby-on-railsWhich loops should be parallelized, external or internal - c ++Get variable name with highest number from Python 3.3.4 list - pythonlatex () in sympy. How to get \ frac, not \\ Frac - pythonPHP gets the largest number of three variables - phpHow to convert String to Drawable - androidWhat is the correct way to use the android.text.format.DateFormat.format method - androidAll Articles