tmf : Fix get analysis modules when executing analysis in TmfTrace
authorJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Thu, 4 Feb 2016 21:44:25 +0000 (16:44 -0500)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Tue, 9 Feb 2016 15:15:31 +0000 (10:15 -0500)
Previously, all existing modules were loaded. Now, only the modules
related to this specific trace are loaded. This prevents to execute
unnecessary analysis.

Change-Id: I3f949f6973f487903fe0e83b0f9d0f7347aa8c41
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/66043
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/TmfTrace.java

index c13f924ddb052ffb0b6592808c67e7510bc30f46..e4440b9ac28fe7a11638ec2b12297901176488a4 100644 (file)
@@ -61,7 +61,6 @@ import org.eclipse.tracecompass.tmf.core.trace.indexer.checkpoint.TmfCheckpointI
 import org.eclipse.tracecompass.tmf.core.trace.location.ITmfLocation;
 
 import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Multimap;
 
 /**
  * Abstract implementation of ITmfTrace.
@@ -288,7 +287,7 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace, IT
         MultiStatus status = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, null, null);
 
         /* First modules are initialized */
-        Multimap<String, IAnalysisModuleHelper> modules = TmfAnalysisManager.getAnalysisModules();
+        Map<String, IAnalysisModuleHelper> modules = TmfAnalysisManager.getAnalysisModules(this.getClass());
         for (IAnalysisModuleHelper helper : modules.values()) {
             try {
                 IAnalysisModule module = helper.newModule(this);
This page took 0.02646 seconds and 5 git commands to generate.