fCheckpoints = oldTrace.fCheckpoints;
}
- @Override
- public LTTngTextTrace copy() {
-
- LTTngTextTrace returnedTrace = null;
-
- try {
- returnedTrace = new LTTngTextTrace(this);
- }
- catch (Exception e) {
- System.out.println("ERROR : Could not create LTTngTextTrace copy (createTraceCopy)"); //$NON-NLS-1$
- e.printStackTrace();
- }
-
- return returnedTrace;
- }
-
private boolean positionToFirstEvent() {
boolean isSuccessful = true;
}
@Override
- public void initTrace(String name, String path, Class<LttngEvent> eventType) throws FileNotFoundException {
- initLTTngTrace(name, path, eventType, CHECKPOINT_PAGE_SIZE, false);
+ public void initTrace(String name, String path, Class<LttngEvent> eventType, int pageSize) throws FileNotFoundException {
+ initLTTngTrace(name, path, eventType, pageSize, false);
}
- @Override
- public void initTrace(String name, String path, Class<LttngEvent> eventType, int cacheSize) throws FileNotFoundException {
- initLTTngTrace(name, path, eventType, cacheSize, false);
- }
-
- @Override
- public void initTrace(String name, String path, Class<LttngEvent> eventType, boolean indexTrace) throws FileNotFoundException {
- initLTTngTrace(name, path, eventType, CHECKPOINT_PAGE_SIZE, indexTrace);
- }
-
- @Override
- public void initTrace(String name, String path, Class<LttngEvent> eventType, int cacheSize, boolean indexTrace) throws FileNotFoundException {
- initLTTngTrace(name, path, eventType, cacheSize, indexTrace);
- }
-
- private synchronized void initLTTngTrace(String name, String path, Class<LttngEvent> eventType, int cacheSize, boolean indexTrace) throws FileNotFoundException {
- super.initTrace(name, path, eventType, indexTrace);
+ private synchronized void initLTTngTrace(String name, String path, Class<LttngEvent> eventType, int pageSize, boolean indexTrace) throws FileNotFoundException {
+ super.initTrace(name, path, eventType, (pageSize > 0) ? pageSize : CHECKPOINT_PAGE_SIZE);
try {
currentJniTrace = JniTraceFactory.getJniTrace(path, traceLibPath, SHOW_LTT_DEBUG_DEFAULT);
} catch (Exception e) {
public LTTngTrace(String name, String path, String traceLibPath, boolean waitForCompletion, boolean bypassIndexing)
throws Exception {
super(name, LttngEvent.class, path, CHECKPOINT_PAGE_SIZE, false);
- initTrace(name, path, LttngEvent.class, !bypassIndexing);
+ initTrace(name, path, LttngEvent.class, CHECKPOINT_PAGE_SIZE);
+ if (!bypassIndexing)
+ indexTrace(false);
this.traceLibPath = traceLibPath;
}
setTimeRange(new TmfTimeRange(new LttngTimestamp(other.getStartTime()), new LttngTimestamp(other.getEndTime())));
}
- @Override
- public LTTngTrace copy() {
- LTTngTrace returnedTrace = null;
-
- try {
- returnedTrace = new LTTngTrace(this);
- } catch (Exception e) {
- System.out.println("ERROR : Could not create LTTngTrace copy (createTraceCopy)."); //$NON-NLS-1$
- e.printStackTrace();
- }
-
- return returnedTrace;
- }
-
@Override
public synchronized LTTngTrace clone() {
LTTngTrace clone = null;
import org.eclipse.linuxtools.tmf.core.parser.ITmfEventParser;
import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
// indexTrace(true);
}
- @Override
- public ITmfTrace<LttngEvent> copy() {
- ITmfTrace<LttngEvent> returnedValue = null;
- try {
- returnedValue = new LTTngTraceStub(this.getName());
- }
- catch (FileNotFoundException e) {
- e.printStackTrace();
- }
- return returnedValue;
- }
-
// ========================================================================
// Accessors
// ========================================================================
public abstract class CTFTestFiles {
public final static long NANOSECS_PER_SEC = 1000000000L;
+ private final static int PAGE_SIZE = 1000;
/*
* To run these tests, you will need to download the following trace, at:
public static CtfTmfTrace getTestTrace() throws FileNotFoundException {
if (trace == null) {
trace = new CtfTmfTrace();
- trace.initTrace("test-trace2", traceFile, CtfTmfEvent.class); //$NON-NLS-1$
+ trace.initTrace("test-trace2", traceFile, CtfTmfEvent.class, PAGE_SIZE); //$NON-NLS-1$
}
return trace;
}
private static final File emptyFile = new File(""); //$NON-NLS-1$
private static CtfTmfTrace emptyTrace = new CtfTmfTrace();
-
+
+ private final static int PAGE_SIZE = 1000;
+
public static File getEmptyFile() {
return emptyFile;
}
public static CtfTmfTrace createTrace() throws FileNotFoundException {
if ( testTrace1 == null ) {
testTrace1 = new CtfTmfTrace();
- testTrace1.initTrace("test-trace", testTracePath1, CtfTmfEvent.class); //$NON-NLS-1$
+ testTrace1.initTrace("test-trace", testTracePath1, CtfTmfEvent.class,PAGE_SIZE); //$NON-NLS-1$
}
return testTrace1;
}
import org.eclipse.linuxtools.tmf.core.parser.ITmfEventParser;
import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
return clone;
}
- @Override
- public ITmfTrace<TmfEvent> copy() {
- ITmfTrace<TmfEvent> returnedValue = null;
- returnedValue = clone();
- return returnedValue;
- }
-
// ------------------------------------------------------------------------
// Accessors
// ------------------------------------------------------------------------
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
- plugin.xml,\
plugin.properties,\
about.html,\
.
}
@Override
- public void initTrace(String name, String path, Class<CtfTmfEvent> eventType)
+ public void initTrace(String name, String path, Class<CtfTmfEvent> eventType, int pageSize)
throws FileNotFoundException {
try {
this.fTrace = new CTFTrace(path);
}
@Override
- public void initTrace(String name, String path,
- Class<CtfTmfEvent> eventType, int cacheSize)
- throws FileNotFoundException {
- this.initTrace(name, path, eventType);
- }
-
- @Override
- public void initTrace(String name, String path,
- Class<CtfTmfEvent> eventType, boolean indexTrace)
- throws FileNotFoundException {
- this.initTrace(name, path, eventType);
- }
-
- @Override
- public void initTrace(String name, String path,
- Class<CtfTmfEvent> eventType, int cacheSize, boolean indexTrace)
- throws FileNotFoundException {
- this.initTrace(name, path, eventType);
+ public void indexTrace(boolean waitForCompletion) {
}
@Override
return clone;
}
- @Override
- public ITmfTrace<CtfTmfEvent> copy() {
- // FIXME not yet implemented
- return null;
- }
-
// ------------------------------------------------------------------------
// Accessors
// ------------------------------------------------------------------------
CTFTrace getCTFTrace() {
return fTrace;
}
+
}
import org.eclipse.linuxtools.tmf.core.signal.TmfExperimentSelectedSignal;
import org.eclipse.linuxtools.tmf.core.signal.TmfExperimentUpdatedSignal;
import org.eclipse.linuxtools.tmf.core.signal.TmfSignalHandler;
-import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;
import org.eclipse.linuxtools.tmf.core.signal.TmfTraceUpdatedSignal;
import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
}
@Override
- public void initTrace(String name, String path, Class<T> eventType) {
- }
-
- @Override
- public void initTrace(String name, String path, Class<T> eventType, boolean indexTrace) {
- if (indexTrace) {
- initializeStreamingMonitor();
- }
- }
-
- @Override
- public void initTrace(String name, String path, Class<T> eventType, int cacheSize) {
- }
-
- @Override
- public void initTrace(String name, String path, Class<T> eventType, int cacheSize, boolean indexTrace) {
- if (indexTrace) {
- initializeStreamingMonitor();
- }
+ public void initTrace(String name, String path, Class<T> eventType, int pageSize) {
}
/**
fTimeRange = TmfTimeRange.NULL_RANGE;
if (preIndexExperiment) {
- indexExperiment(true);
- updateTimeRange();
+ indexExperiment(true, 0, TmfTimeRange.ETERNITY);
+ updateTimeRange();
}
}
this(type, id, traces, TmfTimestamp.ZERO, indexPageSize);
}
- /**
- * Copy constructor
- *
- * @param other
- */
- @SuppressWarnings("unchecked")
- public TmfExperiment(TmfExperiment<T> other) {
- super(other.getName() + "(copy)", other.fType); //$NON-NLS-1$
-
- fEpoch = other.fEpoch;
- fIndexPageSize = other.fIndexPageSize;
-
- fTraces = new ITmfTrace[other.fTraces.length];
- for (int trace = 0; trace < other.fTraces.length; trace++) {
- fTraces[trace] = other.fTraces[trace].copy();
- }
-
- fNbEvents = other.fNbEvents;
- fTimeRange = other.fTimeRange;
- }
-
- @Override
- public TmfExperiment<T> copy() {
- TmfExperiment<T> experiment = new TmfExperiment<T>(this);
- TmfSignalManager.deregister(experiment);
- return experiment;
- }
-
/**
* Clears the experiment
*/
}
}
- protected void indexExperiment(boolean waitForCompletion) {
- indexExperiment(waitForCompletion, 0, TmfTimeRange.ETERNITY);
+ @Override
+ public void indexTrace(boolean waitForCompletion) {
+ if (waitForCompletion) {
+ initializeStreamingMonitor();
+ }
}
@SuppressWarnings("unchecked")
// ------------------------------------------------------------------------
private ITmfTrace<?>[] fTraces = new ITmfTrace[0];
- private TmfContext[] fContexts;
+ private ITmfContext[] fContexts;
private ITmfEvent[] fEvents;
private int lastTraceRead;
// Constructors
// ------------------------------------------------------------------------
- public TmfExperimentContext(ITmfTrace<?>[] traces, TmfContext[] contexts) {
+ public TmfExperimentContext(ITmfTrace<?>[] traces, ITmfContext[] contexts) {
super();
fTraces = traces;
fContexts = contexts;
setLastTrace(other.lastTraceRead);
}
- private TmfContext[] cloneContexts() {
- TmfContext[] contexts = new TmfContext[fContexts.length];
+ private ITmfContext[] cloneContexts() {
+ ITmfContext[] contexts = new TmfContext[fContexts.length];
for (int i = 0; i < fContexts.length; i++)
contexts[i] = fContexts[i].clone();
return contexts;
/*******************************************************************************
- * Copyright (c) 2009, 2011 Ericsson
+ * Copyright (c) 2009, 2011, 2012 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
*
* Contributors:
* Francois Chouinard - Initial API and implementation
+ * Francois Chouinard - Updated as per TMF Trace Model 1.0
*******************************************************************************/
package org.eclipse.linuxtools.tmf.core.trace;
/**
* <b><u>ITmfTrace</u></b>
* <p>
+ * The basic event trace structure in the TMF.
*/
public interface ITmfTrace<T extends ITmfEvent> extends ITmfComponent {
- // initTrace variants
- public void initTrace(String name, String path, Class<T> eventType) throws FileNotFoundException;
+ // ------------------------------------------------------------------------
+ // Constants
+ // ------------------------------------------------------------------------
- public void initTrace(String name, String path, Class<T> eventType, int cacheSize) throws FileNotFoundException;
+ // ------------------------------------------------------------------------
+ // Initializers
+ // ------------------------------------------------------------------------
- public void initTrace(String name, String path, Class<T> eventType, boolean indexTrace) throws FileNotFoundException;
+ // initTrace variants
+ public void initTrace(String name, String path, Class<T> eventType, int pageSize) throws FileNotFoundException;
- public void initTrace(String name, String path, Class<T> eventType, int cacheSize, boolean indexTrace) throws FileNotFoundException;
+ public void indexTrace(boolean waitForCompletion);
// Trace type validation
public boolean validate(IProject project, String path);
- public ITmfTrace<T> copy();
+ // ------------------------------------------------------------------------
+ // Getters
+ // ------------------------------------------------------------------------
/**
* @return the trace path
*/
public long getStreamingInterval();
+ // ------------------------------------------------------------------------
+ // Seek operations
+ // ------------------------------------------------------------------------
+
/**
* Positions the trace at the first event with the specified timestamp or index (i.e. the nth event in the trace).
*
*/
public ITmfContext seekLocation(double ratio);
+ // ------------------------------------------------------------------------
+ // Read operations
+ // ------------------------------------------------------------------------
+
+ /**
+ * Return the event pointed by the supplied context (or null if no event left) and updates the context to the next
+ * event.
+ *
+ * @return the next event in the stream
+ */
+ public ITmfEvent getNextEvent(ITmfContext context);
+
+ /**
+ * Return the event pointed by the supplied context (or null if no event left) and *does not* update the context.
+ *
+ * @return the next event in the stream
+ */
+ public ITmfEvent parseEvent(ITmfContext context);
+
+
+ // ------------------------------------------------------------------------
+ // misc
+ // ------------------------------------------------------------------------
+
/**
* Returns the ratio corresponding to the specified location.
*
*/
public long getRank(ITmfTimestamp timestamp);
- /**
- * Return the event pointed by the supplied context (or null if no event left) and updates the context to the next
- * event.
- *
- * @return the next event in the stream
- */
- public ITmfEvent getNextEvent(ITmfContext context);
-
- /**
- * Return the event pointed by the supplied context (or null if no event left) and *does not* update the context.
- *
- * @return the next event in the stream
- */
- public ITmfEvent parseEvent(ITmfContext context);
-
/**
* Set the resource used for persistent properties on this trace
* @param resource the properties resource
* @return the properties resource or null if none is set
*/
public IResource getResource();
+
}
}
@Override
- public void initTrace(String name, String path, Class<T> eventType) throws FileNotFoundException {
- initTmfTrace(name, path, eventType, DEFAULT_INDEX_PAGE_SIZE, false);
+ public void initTrace(String name, String path, Class<T> eventType, int pageSize) throws FileNotFoundException {
+ initTmfTrace(name, path, eventType, pageSize, false);
}
- @Override
- public void initTrace(String name, String path, Class<T> eventType, int cacheSize) throws FileNotFoundException {
- initTmfTrace(name, path, eventType, cacheSize, false);
- }
-
- @Override
- public void initTrace(String name, String path, Class<T> eventType, boolean indexTrace) throws FileNotFoundException {
- initTmfTrace(name, path, eventType, DEFAULT_INDEX_PAGE_SIZE, indexTrace);
- }
-
- @Override
- public void initTrace(String name, String path, Class<T> eventType, int cacheSize, boolean indexTrace) throws FileNotFoundException {
- initTmfTrace(name, path, eventType, cacheSize, indexTrace);
- }
-
- private void initTmfTrace(String name, String path, Class<T> eventType, int cacheSize, boolean indexTrace) throws FileNotFoundException {
+ private void initTmfTrace(String name, String path, Class<T> eventType, int pageSize, boolean indexTrace) throws FileNotFoundException {
fPath = path;
if (name != null) {
fTraceName = name;
}
}
super.init(fTraceName, eventType);
- fIndexPageSize = (cacheSize > 0) ? cacheSize : DEFAULT_INDEX_PAGE_SIZE;
+ fIndexPageSize = (pageSize > 0) ? pageSize : DEFAULT_INDEX_PAGE_SIZE;
if (indexTrace)
indexTrace(false);
}
*/
protected TmfTrace(String name, Class<T> type, String path, int cacheSize, boolean indexTrace) throws FileNotFoundException {
super();
- initTrace(name, path, type, cacheSize, indexTrace);
+ initTmfTrace(name, path, type, cacheSize, indexTrace);
}
@SuppressWarnings("unchecked")
* event).
*/
+ @Override
@SuppressWarnings({ "unchecked" })
- protected void indexTrace(boolean waitForCompletion) {
+ public void indexTrace(boolean waitForCompletion) {
final Job job = new Job("Indexing " + getName() + "...") { //$NON-NLS-1$ //$NON-NLS-2$
@Override
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.linuxtools.tmf" xmlns="http://www.w3.org/2001/XMLSchema">
+<schema targetNamespace="org.eclipse.linuxtools.tmf.ui" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
- <meta.schema plugin="org.eclipse.linuxtools.tmf" id="org.eclipse.linuxtools.tmf.tracetype" name="TMF Trace Type"/>
+ <meta.schema plugin="org.eclipse.linuxtools.tmf.ui" id="tracetype" name="TMF Trace Type"/>
</appinfo>
<documentation>
This extension point is used to contribute new trace types to the generic components of the TMF framework.
an optional attribute that is composed of the category ID. The referenced category must be declared in a corresponding category element.
</documentation>
<appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.tracetype/category/@id"/>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.ui.tracetype/category/@id"/>
</appinfo>
</annotation>
</attribute>
import org.eclipse.linuxtools.tmf.core.io.BufferedRandomAccessFile;\r
import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;\r
import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;\r
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;\r
import org.eclipse.linuxtools.tmf.core.trace.TmfContext;\r
import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;\r
import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;\r
public class CustomTxtTrace extends TmfTrace<CustomTxtEvent> {\r
\r
private static final TmfLocation<Long> NULL_LOCATION = new TmfLocation<Long>((Long) null);\r
- private static final int CACHE_SIZE = 100;\r
+ private static final int DEFAULT_PAGE_SIZE = 100;\r
\r
private CustomTxtTraceDefinition fDefinition;\r
private CustomTxtEventType fEventType;\r
}\r
\r
@Override\r
- public void initTrace(String name, String path, Class<CustomTxtEvent> eventType, boolean indexTrace) throws FileNotFoundException {\r
- super.initTrace(name, path, eventType, CACHE_SIZE, indexTrace);\r
- }\r
-\r
- @Override\r
- @SuppressWarnings({ "unchecked", "rawtypes" })\r
- public ITmfTrace copy() {\r
- // TODO Auto-generated method stub\r
- return null;\r
+ public void initTrace(String name, String path, Class<CustomTxtEvent> eventType, int pageSize) throws FileNotFoundException {\r
+ super.initTrace(name, path, eventType, (pageSize > 0) ? pageSize : DEFAULT_PAGE_SIZE);\r
}\r
\r
@Override\r
import org.eclipse.linuxtools.tmf.core.io.BufferedRandomAccessFile;\r
import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;\r
import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;\r
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;\r
import org.eclipse.linuxtools.tmf.core.trace.TmfContext;\r
import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;\r
import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;\r
public class CustomXmlTrace extends TmfTrace<CustomXmlEvent> {\r
\r
private static final TmfLocation<Long> NULL_LOCATION = new TmfLocation<Long>((Long) null);\r
- private static final int CACHE_SIZE = 100;\r
+ private static final int DEFAULT_PAGE_SIZE = 100;\r
\r
private CustomXmlTraceDefinition fDefinition;\r
private CustomXmlEventType fEventType;\r
}\r
\r
@Override\r
- public void initTrace(String name, String path, Class<CustomXmlEvent> eventType, boolean indexTrace) throws FileNotFoundException {\r
- super.initTrace(name, path, eventType, CACHE_SIZE, indexTrace);\r
+ public void initTrace(String name, String path, Class<CustomXmlEvent> eventType, int pageSize) throws FileNotFoundException {\r
+ super.initTrace(name, path, eventType, (pageSize > 0) ? pageSize : DEFAULT_PAGE_SIZE);\r
}\r
\r
@Override\r
}\r
return 0;\r
}\r
-\r
- @Override\r
- @SuppressWarnings({ "rawtypes", "unchecked" })\r
- public ITmfTrace copy() {\r
- // TODO Auto-generated method stub\r
- return null;\r
- }\r
\r
@Override\r
public ITmfLocation<?> getCurrentLocation() {\r
return null;
}
try {
- trace.initTrace(element.getName(), element.getLocation().getPath(), traceEvent.getClass(), false);
+ trace.initTrace(element.getName(), element.getLocation().getPath(), traceEvent.getClass(), 0);
} catch (FileNotFoundException e) {
displayErrorMsg(""); //$NON-NLS-1$
}
} else {
activePage.openEditor(editorInput, editorId);
}
- experiment.initTrace(null, null, null, true);
+ experiment.initTrace(null, null, null, 0);
+ experiment.indexTrace(true);
IDE.setDefaultEditor(file, editorId);
// editor should dispose the experiment on close
} else {
boolean usesEditor = editorId != null && editorId.length() > 0;
try {
- trace.initTrace(fTrace.getName(), fTrace.getLocation().getPath(), traceEvent.getClass(), usesEditor);
+ trace.initTrace(fTrace.getName(), fTrace.getLocation().getPath(), traceEvent.getClass(), 0);
+ if (usesEditor)
+ trace.indexTrace(false);
} catch (FileNotFoundException e) {
displayErrorMsg(Messages.OpenTraceHandler_NoTrace);
return null;
throw new PartInitException(Messages.OpenExperimentHandler_NoTraceType);
}
try {
- trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), false);
+ trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), 0);
} catch (FileNotFoundException e) {
}
trace.setResource(traceElement.getResource());
throw new PartInitException(Messages.OpenTraceHandler_NoTraceType);
}
try {
- trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), false);
+ trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), 0);
} catch (FileNotFoundException e) {
}
trace.setResource(traceElement.getResource());
throw new PartInitException(Messages.OpenTraceHandler_NoTraceType);
}
try {
- trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), true);
+ trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), 0);
+ trace.indexTrace(false);
} catch (FileNotFoundException e) {
}
if (trace instanceof TmfTrace) {
throw new PartInitException(Messages.OpenExperimentHandler_NoTraceType);\r
}\r
try {\r
- trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), false);\r
+ trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), 0);\r
} catch (FileNotFoundException e) {\r
}\r
trace.setResource(traceElement.getResource());\r
TmfExperiment experiment = new TmfExperiment(TmfEvent.class, experimentElement.getName(), traces, cacheSize);\r
experiment.setBookmarksFile(fFile);\r
fTrace = experiment;\r
- experiment.initTrace(null, null, null, true);\r
+ experiment.initTrace(null, null, null, 0);\r
+ experiment.indexTrace(true);\r
break;\r
}\r
}\r
throw new PartInitException(Messages.OpenTraceHandler_NoTraceType);\r
}\r
try {\r
- trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), true);\r
+ trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), 0);\r
+ trace.indexTrace(false);\r
} catch (FileNotFoundException e) {\r
}\r
trace.setResource(traceElement.getResource());\r
throw new PartInitException(Messages.OpenTraceHandler_NoTraceType);\r
}\r
try {\r
- trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), true);\r
+ trace.initTrace(traceElement.getName(), traceElement.getLocation().getPath(), traceEvent.getClass(), 0);\r
+ trace.indexTrace(false);\r
} catch (FileNotFoundException e) {\r
}\r
if (trace instanceof TmfTrace) {\r
fTrace = (ITmfTrace<?>) ce.createExecutableExtension(TmfTraceType.TRACE_TYPE_ATTR);\r
TmfEvent event = (TmfEvent) ce.createExecutableExtension(TmfTraceType.EVENT_TYPE_ATTR);\r
String path = fFile.getLocationURI().getPath();\r
- fTrace.initTrace(name, path, event.getClass(), true);\r
+ fTrace.initTrace(name, path, event.getClass(), 0);\r
+ fTrace.indexTrace(false);\r
break;\r
}\r
}\r