How can we check if a certain object is freed

When I start working fast, I am curious about mgmt. As we all know, when creating any object or assigning data to this object, memory is required. How can we verify that a specific object has freed memory. I used the xcode memory report to see the state of memory and wobble.

Here is an example of images:

enter image description here

enter image description here

How can I free memory if I already set zero to objects.

+7
ios objective-c swift
source share
3 answers

Use tools to track the life cycle of an object, not just Xcode, as it gives you placement data at a much higher level.

Check out the answer at fooobar.com/questions/99269 / .... Although this was due to old tools, it still works.

+3
source share

We recommend using tools to check for leaks or distributions.

You can also set breakpoints or add logs to the dealloc method.

+1
source share

Some objects are very small, and in memory profiling it can be difficult to see which one is released. This tool is useful for detecting memory leaks in an application. To check if an object has been released from memory, or you cannot set breakpoints or logs in the dealloc() method for object c and in the deinit() method for fast.

+1
source share

All Articles