Profile with Instruments.
Since 10.5, OS X has included DTrace, Sun's instrumentation and profiling framework. Instruments is an application that provides a very convenient user interface to DTrace and lets you easily spot memory leaks, code that needs optimising, and other potential problems with your code.
For more tips, and more detail about this tip, please see my new book,
Cocoa Programming Developer's Handbook,
available in print and electronic formats.
Take advantage of special member promotions, everyday discounts, quick access to saved content, and more! Join Today.