Skip to content

Latest commit

 

History

History
97 lines (51 loc) · 6.6 KB

RecordingDocument.md

File metadata and controls

97 lines (51 loc) · 6.6 KB

The Recording Document

A recording document is used to initiate new profiling and view and analyze the results of profiling. You create a new recording document by selecting FileNewRecording... and choosing an app-device pair to profile. You can also save and reopen recording documents in which you’ve collected data previously. A recording document can contain a lot of extremely detailed information, and this information is presented to you through a number of panes and areas.

The Recording Document

Toolbar

The toolbar allows you to stop data profiling, add flags to the recording, display information about the current recording, hide and show panes, and more.

Toolbar

It includes the following main elements:

  • Profiling controls: Allow you to stop data collection and add a flag
    • The Follow most recent samples button (Follow Button) controls whether Detox Instruments follows the latest samples as they become available
    • The Stop button (Stop Button) stops the recording
  • Document activity: Shows information about the current recording document
  • Customization button (Customize Button): Customize the list of visible instruments in the timeline pane.
  • View buttons (Detail Pane, Inspector Pane): Hide or show the detail pane and inspector.

Timeline Pane

The timeline pane displays a graphical summary of the data recorded for a given recording. In this pane, each instrument has its own “track,” which provides a graphical chart of the data collected.

The most prominent portion of a trace document is the timeline pane, which presents a time-based view of the data gathered by each instrument. This pane makes it easy to spot trends and potential problem areas in your app at a glance. For example, a sharp rise in the Memory Usage instrument graph may indicate a that your app created more objects or memory buffers than you anticipated. The Network Activity instrument graph displays a timeline of network requests made. If too many requests are created concurrently, this may indicate that your app has scheduling problems.

You can scroll through data using your trackpad, mouse or simply dragging the timeline view. You can zoom in and out by pinching your trackpad or pressing ⌘+ / ⌘−. Select ViewFit All Recorded Data or press ⌃⌘Z to fit all recorded data in the timeline.

Clicking on any point in the timeline will select the closest recorded data sample. The same sample will be selected in the detail pane and additional information will be displayed in the inspector pane under Extended Detail.

Timeline Pane

You can enable interval labels for range graphs by selecting ViewShow Intervals Labels or press ⌃⌘L.

Timeline Labels

Customization

Clicking the Customization button in the window toolbar will display a list of all the available instruments in the current document.

Customization

Click on instruments you would like to hide from display.

Detail Pane

The detail pane displays the data associated with the current recording for the selected instrument. Detox Instruments displays only one instrument at a time in the detail pane, so you must select different instruments to see different sets of details.

Detail Pane

Navigation Bar

The navigation bar at the top of the detail pane helps you browse through collected data. You can use the navigation bar to switch between types of data.

  • Instrument: Icon and name of the currently selected instrument in the timeline pane. You can switch between the instrument and the console output by clicking the instrument and selecting Console.
  • Detail type list: Allows you to navigate between different types of data. The options displayed here vary, depending on the actively selected instrument. For many instruments, the list includes things like a summary of data, a call tree, and a console.

Console

Collected Data Area

The collected data area shows you all of the data for the selected instrument and detail type, typically in tabular format. The content displayed here varies significantly from instrument to instrument. For example, the CPU instrument displays usage and thread information while the network instrument displays network requests.

Some select instruments, as well as the console view, display a filter field at the bottom, allowing you to filter collected data for a specific term.

Inspector Pane

This pane contains instrument-specific additional information that may be useful when browsing through data in the detail pane, as well as additional information about the recording document.

Inspector Pane

Extended Detail

For some instruments, the extended detail area in the inspector pane shows additional information about the sample currently selected in the detail pane. This extended detail information can include a description, the time when the information was recorded, a stack trace for a sample from the CPU instrument or response and request data for a Network Activity sample.

Recording Info

The recording info area includes information about the recording and the profiling preferences which were used for the recording.

Touch Bar

The Touch Bar displays a single instrument at a time and can be used as input for sample selection.

Touch Bar

Tap the Select Instrument button to select which instrument is displayed.

Touch Bar - Select Instrument

Saving a Recording Document

Once you’ve profiles your app and created a recording document, you can save it for later reference. Detox Instruments saves recording documents as Detox Instruments recording files with the .dtxprof extension.

Choose FileSave. Or, choose FileDuplicate if you want to save a previously saved recording document as a new file. Name the file and click on the Save button.