doc: Document the external analyses feature
authorPhilippe Proulx <pproulx@efficios.com>
Mon, 25 Apr 2016 23:00:55 +0000 (19:00 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 8 Jun 2016 11:40:19 +0000 (07:40 -0400)
Bug 495211

Change-Id: I323e83b23f3a90591a9d24d0ecd067cb6e34b925
Signed-off-by: Philippe Proulx <pproulx@efficios.com>
Reviewed-on: https://git.eclipse.org/r/74813
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
14 files changed:
doc/org.eclipse.tracecompass.doc.user/doc/User-Guide.mediawiki
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis-dialog.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-configuration-dialog.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-only.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analyses-list.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analysis-parameters-dialog.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/new-custom-scatter-chart-menu.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/remove-external-analysis.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/report-view.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/run-external-analysis.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart-toggle-button.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart.png [new file with mode: 0644]
doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/user-defined-external-analysis.png [new file with mode: 0644]

index 857b765f5ab1953921e5d1d2e842356e97272b2a..f001449889e41ec1b95fa02265473a7b4c3587ed 100644 (file)
@@ -843,6 +843,74 @@ The view shows a tree of currently selected traces and their registered state sy
 
 To modify the time of attributes shown in the view, select a different current time in other views that support time synchronization (e.g. event table, histogram view). When a time range is selected, this view uses the begin time.
 
+== External Analyses ==
+
+Trace Compass supports the execution of '''external analyses''' conforming to the machine interface of [http://github.com/lttng/lttng-analyses LTTng analyses] 0.4. Later versions of LTTng analyses are supported by later versions of Trace Compass.
+
+An external analysis is a [[#Run an External Analysis|program executed by Trace Compass]]. When the program is done analyzing, Trace Compass generates a '''[[#Open a Report|report]]''' containing its results. A report contains one or more tables which can also be viewed as bar and scatter [[#Create a Chart from a Result Table|charts]].
+
+'''Note''': The program to execute is found by searching the directories listed in the standard <code>$PATH</code> environment variable when no path separator (<code>/</code> on Unix and OS X, <code>\</code> on Windows) is found in its command.
+
+Trace Compass ships with a default list of ''descriptors'' of external analyses (not the analyses themselves), including the descriptors of the [http://github.com/lttng/lttng-analyses LTTng analyses]. If the LTTng analyses project is installed, its analyses are available when opening or importing an LTTng kernel trace.
+
+=== Run an External Analysis ===
+
+To run an external analysis:
+
+# [[#Importing Traces to the Project|Import a trace to the project]].
+# Make sure the trace is opened by double-clicking its name in the [[#Project Explorer View]].
+# Under the trace in the [[#Project Explorer View]], expand ''External Analyses'' to view the list of available external analyses.<p>The external analyses which are either missing or not compatible with the trace are stroke and cannot be executed.</p><p>[[Image:images/externalAnalyses/external-analyses-list.png]]</p>
+# '''Optional''': If you want the external analysis to analyze a specific time range of the current trace, make a time range selection.<p>You can use views like the [[#Histogram View]] and the [[#Control Flow View]] (if it's available for this trace) to make a time range selection.</p><p>External analyses are executed on the current time range selection if there is one, or on the whole trace otherwise.</p>
+# Right-click the external analysis to run and click '''Run External Analysis'''.<p>[[Image:images/externalAnalyses/run-external-analysis.png]]</p>
+# In the opened ''External Analysis Parameters'' window, optionally enter extra parameters to pass to the program.<p>[[Image:images/externalAnalyses/external-analysis-parameters-dialog.png]]</p>
+# Click '''OK''' to start the analysis.
+
+Note that many external analyses can be started concurrently.
+
+When the external analysis is done analyzing, its results are saved as a [[#Open a Report|report]] in Trace Compass. The tables contained in this report are also automatically opened into a new report view when the analysis is finished.
+
+=== Open a Report ===
+
+A '''report''' is created after a successful [[#Run an External Analysis|execution of an external analysis]].
+
+To open a report:
+
+* Under ''Reports'' under a trace in the [[#Project Explorer View]], double-click the report to open.<p>Each result table generated by the external analysis is shown in its own tab in the opened report view.</p><p>[[Image:images/externalAnalyses/report-view.png]]</p>
+
+=== Create a Chart from a Result Table ===
+
+To create a bar or a scatter chart from the data of a given result table:
+
+# [[#Open a Report|Open the report]] containing the result table to use for creating the chart.
+# In the opened report view, click the tab of the result table to use for creating the chart.
+# Click the ''View Menu'' button, then click either '''New custom bar chart''' or '''New custom scatter chart'''.<p>[[Image:images/externalAnalyses/new-custom-scatter-chart-menu.png]]</p>
+# In the opened ''Bar chart series creation'' or ''Scatter chart series creation'' window, under ''Series creator'', select a column to use for the X axis of the chart, and one or more columns to use for the Y axis of the chart, then click '''Add''' to create a series.<p>[[Image:images/externalAnalyses/chart-configuration-dialog.png]]</p><p>Repeat this step to create more series.</p>
+# Click '''OK''' to create the chart.<p>The chart is created and shown at the right of its source result table.</p><p>[[Image:images/externalAnalyses/table-and-chart.png]]</p>
+
+=== Show or Hide a Result Table ===
+
+To show or hide a result table once a [[#Create a Chart from a Result Table|chart]] has been created:
+
+* In the report view, click the ''Toggle the Table view of the results'' button.<p>[[Image:images/externalAnalyses/table-and-chart-toggle-button.png]]</p><p>If the result table was visible, it is now hidden:</p><p>[[Image:images/externalAnalyses/chart-only.png]]</p>
+
+=== Add and Remove a User-Defined External Analysis ===
+
+You can add a user-defined external analysis to the current list of external analyses. Note that the command to invoke must conform to the machine interface of [http://github.com/lttng/lttng-analyses LTTng analyses] 0.4.
+
+'''Note''': If you want to create your own external analysis, consider following the [http://lttng.org/files/lami/lami-1.0.1.html LAMI 1.0 specification], which is supported by later versions of Trace Compass.
+
+To add a user-defined external analysis:
+
+# Under any trace in the [[#Project Explorer View]], right-click ''External Analyses'' and click '''Add External Analysis'''.<p>[[Image:images/externalAnalyses/add-external-analysis.png]]</p>
+# In the opened ''Add External Analysis'' window, enter the name of the new external analysis and the associated command to run.<p>[[Image:images/externalAnalyses/add-external-analysis-dialog.png]]</p><p>The name is the title of the external analysis as shown under ''External Analyses'' in the [[#Project Explorer View]].</p><p>The command is the complete command line to execute. You can put arguments containing spaces or other special characters in double quotes.</p><p>'''Note''': If the command is not a file system path, then it must be found in the directories listed in the <code>$PATH</code> environment variable.</p>
+# Click '''OK''' to add the user-defined external analysis.<p>A user-defined external analysis with a green icon is created under ''External Analyses'' in the [[#Project Explorer View]].</p><p>[[Image:images/externalAnalyses/user-defined-external-analysis.png]]</p>
+
+'''Note''': The new external analysis entry is saved in the workspace.
+
+To remove a user-defined external analysis:
+
+* Under ''External Analyses'' in the [[#Project Explorer View]], right-click the external analysis to remove and click '''Remove External Analysis'''.<p>[[Image:images/externalAnalyses/remove-external-analysis.png]]</p><p>'''Note''': Only user-defined (green icon) external analyses can be removed.</p>
+
 == Custom Parsers ==
 
 Custom parser wizards allow the user to define their own parsers for text or XML traces. The user defines how the input should be parsed into internal trace events and identifies the event fields that should be created and displayed. Traces created using a custom parser can be correlated with other built-in traces or traces added by plug-in extension.
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis-dialog.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis-dialog.png
new file mode 100644 (file)
index 0000000..574fe4d
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis-dialog.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis.png
new file mode 100644 (file)
index 0000000..f3e0a90
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/add-external-analysis.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-configuration-dialog.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-configuration-dialog.png
new file mode 100644 (file)
index 0000000..c2ba744
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-configuration-dialog.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-only.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-only.png
new file mode 100644 (file)
index 0000000..64627de
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/chart-only.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analyses-list.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analyses-list.png
new file mode 100644 (file)
index 0000000..23a1b35
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analyses-list.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analysis-parameters-dialog.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analysis-parameters-dialog.png
new file mode 100644 (file)
index 0000000..ff8a1f8
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/external-analysis-parameters-dialog.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/new-custom-scatter-chart-menu.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/new-custom-scatter-chart-menu.png
new file mode 100644 (file)
index 0000000..5625e38
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/new-custom-scatter-chart-menu.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/remove-external-analysis.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/remove-external-analysis.png
new file mode 100644 (file)
index 0000000..c4a84c4
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/remove-external-analysis.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/report-view.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/report-view.png
new file mode 100644 (file)
index 0000000..17d62d7
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/report-view.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/run-external-analysis.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/run-external-analysis.png
new file mode 100644 (file)
index 0000000..6b0f970
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/run-external-analysis.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart-toggle-button.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart-toggle-button.png
new file mode 100644 (file)
index 0000000..ba60f23
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart-toggle-button.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart.png
new file mode 100644 (file)
index 0000000..7b4e590
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/table-and-chart.png differ
diff --git a/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/user-defined-external-analysis.png b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/user-defined-external-analysis.png
new file mode 100644 (file)
index 0000000..795a0b6
Binary files /dev/null and b/doc/org.eclipse.tracecompass.doc.user/doc/images/externalAnalyses/user-defined-external-analysis.png differ
This page took 0.031472 seconds and 5 git commands to generate.