20. Using Instruments

Instruments is Apple’s front end (and a few more things as well) to DTrace, a dynamic tracing system that records debugging and performance information about a running program. If you’ve never used it before, Instruments will revolutionize the way you profile and debug your applications. Once you’ve let it spoil you, you’ll wonder how you ever managed to make it out of the dark ages of leaks, zombies, and performance sinks.

An Overview of DTrace

DTrace lets you trace your application as it runs. Tracing is logging information about a running computer program for debugging and performance analysis; it is used mainly by developers. Contrast this with “high-level logging,” which is used by end users and system administrators ...

Get Mastering Xcode 4: Develop and Design 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.