Using sequence diagram triggers

Runtime Tracing for C and C++

Sequence Diagram triggers allow you to predefine automatic start and stop parameters for the UML/SD Viewer. The trigger capability is useful if you only want to trace a specific portion of an instrumented application.

Triggers can be inactive, time-dependent, or event-dependent.

To access the Trigger dialog box:

  1. From the UML/SD Viewer menu, select Triggers or click the Trigger button in the UML/SD Viewer toolbar.

Start and End of Runtime Tracing:

The Runtime Tracing start is defined on the Start tab:

  • At the beginning: Runtime Tracing starts when the application starts.

  • On time: Runtime Tracing starts after a specified number of microseconds.

  • On event: Runtime Tracing starts when a specified event is detected. One or several events must be specified with the Event Editor.

The Runtime Tracing end is defined on the Stop tab:

  • Never: Runtime Tracing ends when the application exits.

  • On time: Runtime Tracing ends after a specified number of seconds.

  • On event: Runtime Tracing ends when a specified event is detected. One or several events must be specified with the Event Editor.

To create a new trigger event:

  1. Click the New button

  2. Create the new trigger event with the Event Editor.

To modify an existing trigger event:

  1. Select the trigger event that you want to change.

  2. Click the Edit button.

  3. Modify the trigger event with the Event Editor.

To import one or several trigger events:

The import facility is useful if you want to reuse trigger events created in another Project.

  1. Click the Import button.

  2. Locate and select the file(s) that you want to import.

  3. Click OK.

To export a trigger event:

The export facility allows you to transfer trigger events.

  1. Select the trigger event that you want to export.

  2. Click the Export button.

  3. Select the location and name of the exported .tft file.

  4. Click OK.

Related Topics

Editing Trigger or Filter Events | Applying Filters