Part 2: Configuring a Trace Session
- Updated2025-10-18
- 2 minute(s) read
In Part 1 of this tutorial, you open a trace connection between the toolkit and the example project you want to trace. In Part 2 of this tutorial, you configure a trace session for the trace connection you opened in Part 1.
- In the Desktop Execution Trace Toolkit, click the arrow below Capture Settings to display the Capture Settings pull-down menu, in which you can quickly select the event types you want to trace.
- Place a checkmark in the Memory Allocations checkbox to capture memory allocation events.
-
You can enter a value in the Memory Threshold field to avoid
capturing small memory allocation events. For example, you can use this option to ignore
memory allocations of less than 1,000 bytes. In this example, use the default
configuration.
Tip Selecting only the types you want to trace and specifying a reasonable memory threshold can improve the efficiency of memory usage and save time analyzing trace data.
- Click the Capture Settings image to launch the Capture Settings dialog box, in which you can select the detailed events you want to trace for the types you select on the Capture Settings pull-down menu.
-
Hover over the
head
of this dialog box, the toolkit displays an illustration about the capturing process. Make
sure you understand the illustration. The toolkit does not capture the events you deselect
in the dialog box. Select only the events you want to trace so that you can reduce the
amount of data that the toolkit must process and that you must analyze.
Tip To capture a specific event but temporarily prevent the table pane from displaying the event, you can filter the trace data after you execute a trace session.
- Double-check that the Memory Allocations checkbox contains a checkmark. The Capture Settings dialog box automatically updates for the configurations you specify in the Capture Settings pull-down menu.
- Click OK to apply the capture settings and close the Capture Settings dialog box.
After you configure a trace session for Desktop Execution Trace Toolkit.lvproj, you can execute the trace session in Part 3 of this tutorial.
Related Information
- Opening a Trace Connection
You can open a trace connection from the toolkit or from a LabVIEW VI or project.
- Configuring a Trace Session
After you open a trace connection, you can specify types of execution events you want to capture to reduce the memory the Desktop Execution Trace Toolkit uses and avoid running out of memory.
- Part 5: Filtering Trace Data
In Part 4 of this tutorial, you review the trace data that the Desktop Execution Trace Toolkit captures from Desktop Execution Trace Toolkit.lvproj. You may notice that executing a trace session even on a small application can capture hundreds of execution events. In Part 5 of this tutorial, you execute a second trace session and filter the events that the table pane displays to make the table pane easier to read.