简体   繁体   中英

“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:

在此输入图像描述

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

Thanks

Shani

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM