Runtime Tracing for C, C++ and Java
The lifeline of an object is represented in the UML/SD Viewer as shown below.
The instance creation box displays the name of the instance. For more information about UML sequence diagrams, see the UML sequence diagram reference.
Example
Below is an example of object lifelines generated by Runtime Tracing from a C++ application.
In this C++ example:
Functions and static methods are attached to the World instance.
Objects are labelled with obj<number>:<classname>
The black cross represents the destruction of the instance.
Constructors are displayed as green arrow actions.
Destructors are the blue arrows.
Return messages are dotted red lines.
Other functions and methods are black.
The main() is a function of the World instance called by the same World instance.
To jump to the corresponding portion of source code:
Double-click an element of the object lifeline to open the Text Editor at the corresponding line in the source code.
To jump to the beginning or to the end of an instance:
Right-click an element of the object lifeline.
Select Go to Head or Go to Destruction in the pop-up menu.
To filter an instance out of the UML sequence diagram:
Right-click an element of the object lifeline.
Select Filter instance in the pop-up menu.
Related Topics
UML sequence diagram reference | Model Elements and Relationships in Sequence Diagrams