I have got to say, I am consistently impressed with how useful the Apple XCode tool Instruments is. It is stuffed full of useful utilities and diagnostic tools, and it is quite the tool in the toolchest. I had absolutely no idea how bad at memory management my application within its threads (it was leaking thread handles, even!) but now I’ve not only cleaned up a lot of those, but I’ve refactored a good chunk of the code that I personally found to be ‘ugly’ into much more easily maintainable blocks.


