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:
-
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:
-
Click the New button
-
Create the new trigger event with the Event Editor.
To modify an existing trigger event:
-
Select the trigger event that you want to change.
-
Click the Edit button.
-
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.
-
Click the Import button.
-
Locate and select the file(s) that you want to import.
-
Click OK.
To export a trigger event:
The export facility allows you to transfer trigger events.
-
Select the trigger event that you want to export.
-
Click the Export button.
-
Select the location and name of the exported .tft file.
-
Click OK.
Related Topics
Editing Trigger or Filter Events | Applying Filters