Skip to content

Commit

Permalink
tmf: Don't add trace column in table DP if experiment has 1 trace
Browse files Browse the repository at this point in the history
The TmfEventTableDataProvider was updated for that which is used
in conjunction with Trace Compass trace server.

[Fixed] Don't add trace column in table DP if exp has 1 trace only

Signed-off-by: Hriday Panchasara <hriday.panchasara@ericsson.com>
Change-Id: I1bb75a840cdb6214c151c3b625d5903d85bf5b04
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/196242
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
  • Loading branch information
hriday-panchasara authored and MatthewKhouzam committed Oct 19, 2022
1 parent 632ce21 commit b90fbe6
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -726,7 +726,9 @@ private static Iterable<ITmfEventAspect<?>> getExperimentAspects(TmfExperiment e
ImmutableSet.Builder<ITmfEventAspect<?>> builder = new ImmutableSet.Builder<>();

/* For experiments, we'll add a "trace name" aspect/column */
builder.add(TmfBaseAspects.getTraceNameAspect());
if (traces.size() > 1) {
builder.add(TmfBaseAspects.getTraceNameAspect());
}

if (hasCommonTraceType(experiment)) {
/*
Expand Down

0 comments on commit b90fbe6

Please sign in to comment.