Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Instruments Allocations Net/Overall

I have been tested my app with instruments allocations and get this picture: enter image description here Like graphic shows, my app work normally, but is it normally value in overall bytes? And I'm worry about "#Allocations (Net/Overall)", because it's color is red.What is it mean (red color)

like image 641
Kepler Avatar asked Nov 01 '22 16:11

Kepler


1 Answers

Red is the total (Overall) allocations made and deallocated during all your App's runtime.

Purple (really thin bar over the red one) are the allocated and not yet deallocated objects.

I would say that you don't need to worry too much about it, specially for internal objects or Malloc, and focus indeed on higher level objects such as views and controllers.


Also if you click on the Allocations tool's i you can choose to ignore CF (Core Foundation) or Malloc allocations, which I often do as you don't normally deal directly/don't have control over those allocations.

Again as you improve your higher level objects allocations you'll be indirectly improving those underlying allocations as well.

like image 160
Rivera Avatar answered Nov 12 '22 17:11

Rivera