Are there any tools available as part of XCode4 that per given object will tell you “who owns it at any time?”
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. The Allocaitons instrument can answer that. Turn on retain count tracking and run your app. You can then click through any object (you’ll typically only want to track live allocations) and see an inventory of all retains/releases related to that object.
All retains not balanced by a release from the same object indicates an ownership relationship.
It isn’t 100% precise, but it works well enough (and is improving with each release).