Use Apple's optimization tools to gather performance metrics and identify and eliminate inefficiencies in your code. These tools allow you to fine-tune your software for high performance. For example, you can use these tools to determine where your application is spending its time, to track down memory leaks, and to analyze memory use.