blob: 19174e10945f3c6adf1632232693fba6ac5b3741 [file] [log] [blame]
<html>
<head>
<title>Model-Based Tracing of UML models in Papyrus</title>
</head>
<body>
<h1>CTF tracing of UML models in Papyrus - View traces</h1>
Traces can be shown using different tools. In the sequel, we shortly look at two different views
to view and analyze a traces
<h2>babeltrace</h2>
<p>
The tool <a href="https://babeltrace.org/">babeltrace</a> is a powerful command-line tool that allows to view a trace (besides additional functionality described on the babeltrace home page).
</p>
<p>
If the user passes the name of the trace folder, babeltrace produces a textual output of the trace.
</p>
<h2>TraceCompass</h2>
<p><a href="https://www.eclipse.org/tracecompass/">TraceCompass</a> 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.</p>
<p align=center>
<img alt="View trace with TraceCompass" src="images/TraceCompass.png">
</p>
<p>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.</p>
<p align=center>
<img alt="Set Papyrus as default editor" src="images/PapyrusDefault.png">
</p>
<p>
An existing project can be converted into a TraceCompass project. Then, the trace folders can be imported.
</p>
</body>
</html>