concept instrument in category ios

This is an excerpt from Manning's book iOS Development with Swift.
Xcode provides developers with a library containing debugging tools called instruments that build on and supplement the performance and testing tools that are available in debug gauges.
To get a feel for instruments, we’ll have a look at the time profiler instrument. The time profiler measures how frequently your app performs different processes. You could use the time profiler to find any long-running processes that could be holding up the main thread.

This is an excerpt from Manning's book iOS 4 in Action: Developing iPhone and iPad Apps.
Instruments is a program that allows you to dynamically debug, profile, and trace your program. If you were creating web apps, we would have to point you to a slew of browsers, add-ons, and remote websites to do this sort of work; but for your native apps, that’s all incorporated into this one package.
In the previous section, you learned how to use the Debugger under Xcode; but certain memory-allocation bugs are hard to discover with the Debugger, and that’s when Instruments is useful. Under Xcode, navigate to Product > Profile (or click the Run button to bring up the drop-down menu, and then select Profile). Selecting Profile will launch Instruments with the application running on the iOS Simulator, as shown in figure 4.13.