I've gone over the memory graph debugger documentation and WWDC videos.
The available documentation is sparse and does not go into any detail of what things mean.
Through usage I have a fair understanding of what most symbols and reference lines mean except for the line from an object that loops back on itself in the top right corner of an object symbol. I have noticed it always appears on dictionaries, I have this on one of my own classes and want to know what it means?
It looks like your class has a pointer to itself. Consider this program:
class MyClass {
var other1: MyClass?
var other2: MyClass?
var other3: MyClass?
}
func main() {
let m = MyClass()
m.other1 = m
m.other2 = m
m.other3 = m
print()
}
main()
If you set a breakpoint on the print(…)
statement and look at the memory graph there, you’ll see similar output.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"