Profiling


#1

I am on Snow Leopard 10.6.8, and Xcode 4.2 - hence cannot use ARC. So I am trying to use the manual process. In my code - I can see the Employees, and Assets all being deallocated. When I add the pointer back from Asset (*holder), with strong reference - I do observe that only Employees with Zero Assets are freed up - in my particular case three employee objects.

I tried to use the profiling tool however I am do not observe the Employee objects in Allocation summary stay at 10 (Living), instead of showing 7. After I change the reference to __weak for *holder, I can observe the NSLog showing deallocations of the Employees and Assets, with this code base also I do not observe the Profile tool showing a change in the “Living” objects for Employees and Assets. I think I may be making a ‘pilot’ error in using the Profile tool. Any help will be much appreciated…