Misplaced Pages

Instruments (software)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Instruments (application))
This article is missing information about usage of Instruments app for profiling an app's performance on an iOS device. Please expand the article to include this information. Further details may exist on the talk page. (June 2020)

Instruments
Instruments application icon
Developer(s)Apple Inc
Stable release15.0 (Same as the Xcode version it is bundled with.) / September 18, 2023
Operating systemmacOS
TypeTracing & Profiling
LicenseProprietary freeware
Websitehelp.apple.com/instruments

Instruments (formerly Xray) is an application performance analyzer and visualizer by Apple Inc., integrated in Xcode 3.0 and later versions of Xcode. It is built on top of the DTrace tracing framework from OpenSolaris, which was ported to Mac OS X v10.5 and which is available in all following versions of macOS.

Instruments shows a time line displaying any event occurring in the application, such as CPU activity variation, memory allocation, and network and file activity, together with graphs and statistics. Group of events are monitored via customizable "instruments", which have the ability to record user generated events and replay (emulate) them exactly as many times as needed, so a developer can see the effect of code changes without actually doing the repetitive work. The Instrument Builder feature allows the creation of custom analysis instruments.

Features

Built-in instruments can track

  • CPU activity of processes and threads.
  • Memory allocation and release, garbage collection and memory leaks.
  • File reads, writes, locks.
  • Network activity and traffic. This instrument works like Activity Monitor but also stores the data for future reference.
  • Graphics and inner workings of OpenGL and Metal.
  • Energy diagnostics and "dead" objects.
  • UI automation and Core animation.
  • User events, such as keyboard keys pressed and mouse moves and clicks with exact time.

See also

References

  1. "Add an instrument to a trace document - Instruments Help". Archived from the original on June 20, 2020.
  2. "Track CPU core and thread use- Instruments Help". Archived from the original on June 20, 2020.
  3. "Find abandoned memory - Instruments Help". Archived from the original on June 20, 2020.
  4. "Find memory leaks - Instruments Help". Archived from the original on June 20, 2020.
  5. "Monitor disk use - Instruments Help". Archived from the original on June 20, 2020.
  6. "Use Activity Monitor to track overall network and disk use - Instruments Help". Archived from the original on June 20, 2020.
  7. "Optimizing Performance with the GPU Counters Instrument - Apple Developer Documentation". Archived from the original on June 20, 2020.
  8. "Using Metal System Trace in Instruments to Profile Your App - Apple Developer Documentation". Archived from the original on June 20, 2020.
  9. "Measure the energy impact of an iOS device - Instruments Help". Archived from the original on June 20, 2020.
macOS developer tools
Current tools
Xcode
Former tools


Stub icon

This Classic Mac OS and/or macOS software–related article is a stub. You can help Misplaced Pages by expanding it.

Categories: