ios - Debugging strategies for over-retain in ARC? -
i've got objects passed lot of different views , controllers in application. they're not getting deallocated when expect them to. there errant strong pointer somewhere, surface area of large--these objects moved , out of lot of different info structures.
my usual go-to solution here leaks (which reports no cycles) , allocations (which lists 500+ retain/releases object). there way cut down search space here?
ideally there tool allow me type in pointer , see strong references object, , eyeball list , find reference in 60 seconds. in fact, there such tool -- object graph instrument -- it's not available ios software.
you want allocations instrument. track individual object type, start application. need create heapshot @ every important event (i create them @ points when you've transitioned or view controller).
once you've got heapshot should have object you're interested in tracking down, should able find object type under heapshot's disclosure triangle. each object of type, can history of retains , releases have been sent object clicking on arrow in object's row.
ios objective-c automatic-ref-counting instruments
No comments:
Post a Comment