Adding UML notes to source code

Runtime Tracing for C and C++

You can manually add your own notes inside your source code in order to make them display in the UML sequence diagram when runtime tracing is enabled. To do this, you must insert the following line, called an instrumentation pragma, in your C or C++ source code:

#pragma attol att_insert_ATT_USER_NOTE("Text")

 

This can be done automatically with the text editor.

To manually set the syntax coloring mode:

  1. In a C or C++ source file, place your cursor at the line where you want a UML note to be displayed in the UML sequence diagram.

  2. In the toolbar, click Add Note . This inserts the instrumentation pragma line in the source code:

  3. Replace "Text" with a meaningful string that will be displayed in the note.

Related Topics

Runtime tracing | Editing code and test scripts | UML sequence diagramsNotes | Instrumentation pragmas