Instruments is a performance, analysis, and testing tool for dynamically tracing and profiling macOS, iOS, watchOS, and tvOS code.
Instruments is a performance, analysis, and testing tool for dynamically tracing and profiling macOS, iOS, tvOS, and watchOS code. It is a flexible and powerful tool that lets user track one or more processes and examine the collected data. In this way, Instruments helps user understand the behavior of both user apps and the operating system.
With Instruments, user use special tools to trace different aspects of a process’s behavior. Users can also use the tool to record a sequence of user interface actions and replay them, using one or more instruments to gather data.
Instruments includes the ability to:
- Examine the behavior of one or more processes
- Record a sequence of user actions and replay them, reliably reproducing those events and collecting data over multiple runs
- Create own custom DTrace instruments to analyze aspects of system and app behavior
- Save user interface recordings and instrument configurations as templates, accessible from Xcode
Using Instruments, user can:
- Track down difficult-to-reproduce problems in code
- Do performance analysis on app
- Automate testing of app
- Stress-test parts of app
- Perform general system-level troubleshooting
- Gain a deeper understanding of how app works
Instruments is available with Xcode 3.0 and later and with macOS 10.5 and later.
Source: About Instruments