Templates and Instruments

When Instruments launches, you see a set of templates, not instruments. Templates are the tool’s way of presenting task-based sets of instruments. For example, you can use Leaks to measure memory allocation and leaks, Time Profiler to see where the app is spending time, and so on.

Choosing a template creates a profiling document with the recommended set of instruments. For example, the Leaks template includes both memory allocation and memory leak instruments. The Allocations instrument shows the amount of memory you are using at any point. Leaks tries to find allocated memory with no references. Both instruments are important in finding leaks.

Table 14-1 lists the major templates, what they are useful for, and whether ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.