Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Instruments (Zombies and leaks)

I'm now managing the 'memory' of my new app', but i found a difference that i don't understand. Look at this pic :

Difference

The allocations curves are not similar at all. It's from Zombie mode, and Leaks analyzer. But why is it different because the curves seems to be from allocation ?

Thanks !

like image 500
user2057209 Avatar asked Mar 22 '23 05:03

user2057209


1 Answers

You should not pay any attention to your memory usage curves with Zombies enabled. With Zombies enabled, memory for Objective-C objects is never freed. (That's how zombies work: instead of deallocating the object, the runtime replaces the dead object with a zombie object that complains if it is ever used.)

like image 75
Greg Parker Avatar answered Mar 29 '23 23:03

Greg Parker