Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"no ivar" on Xcode Instruments Leaks Cycles graph

I am using instruments to check my app for leaks and I am trying to learn how to read the leaks cycles data. I am getting this graph on one of my leaks:

enter image description here

What is the meaning if the graph ? What does it mean "no ivar"?

like image 454
shannoga Avatar asked Sep 16 '12 04:09

shannoga


1 Answers

The "no ivar" message is similar to looking at the call stack of a program that has its symbols stripped. If you were looking at the call stack, you would see a memory address instead of the function name. In your example Instruments is showing the addresses, +16 and +24. Instruments can't find the variable name that allocated the memory so you get the [no ivar] message.

I don't have a solution to get Instruments to provide better information. I've never been able to get Instruments to do much with leak cycles.

UPDATE

If you're trying to find where your code leaks memory, I recommend switching to the call tree view, which you can do from the jump bar. Selecting the Invert Call Tree and Hide System Libraries checkboxes make it easier to locate your code in the call tree view. The checkboxes are on the left side of the trace document window.

like image 115
Swift Dev Journal Avatar answered Oct 04 '22 19:10

Swift Dev Journal