CTF tracing of UML models in Papyrus - View traces

Traces can be shown using different tools. In the sequel, we shortly look at two different views to view and analyze a traces

babeltrace

The tool babeltrace is a powerful command-line tool that allows to view a trace (besides additional functionality described on the babeltrace home page).

If the user passes the name of the trace folder, babeltrace produces a textual output of the trace.

TraceCompass

TraceCompass is a CTF trace viewer embedded into Eclipse. This has the advantage that it can be used from the same environment as the model definition. TraceCompass offers several views that can statistical data. The screenshot below shows an example trace in TraceCompass and the possibility to navigate to the source model element.

View trace with TraceCompass

Navigating to a model element will open the associated model element by default in the standard UML2 editor and not in Papyrus. If you want to change that, click on an UML model (.uml file), choose "Open with", then select "Papyrus editor core" (type a prefix of in the text box) as well as the option "Use it for all '*.uml' files" - as shown in the screenshot below. Afterwards, Eclipse will open a ".uml" model in Papyrus.

Set Papyrus as default editor

An existing project can be converted into a TraceCompass project. Then, the trace folders can be imported.