import org.eclipse.tracecompass.tmf.core.event.TmfEvent;
import org.eclipse.tracecompass.tmf.core.event.TmfEventField;
import org.eclipse.tracecompass.tmf.core.event.TmfEventType;
-import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp;
import org.eclipse.tracecompass.tmf.core.trace.ITmfContext;
import org.eclipse.tracecompass.tmf.core.trace.ITmfEventParser;
import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
}
final String[] fieldArray = new String[i];
final ITmfEventField rootField = TmfEventField.makeRoot(fields.toArray(fieldArray));
- fTypes[i] = new TmfEventType("UnitTest", "Type-" + i, rootField);
+ fTypes[i] = new TmfEventType("Type-" + i, rootField);
}
}
stream.seek(location);
final long ts = stream.readLong();
- final String source = stream.readUTF();
+ stream.readUTF(); /* Previously source, now unused */
final String type = stream.readUTF();
- final int reference = stream.readInt();
+ stream.readInt(); /* Previously reference, now unused */
final int typeIndex = Integer.parseInt(type.substring(typePrefix.length()));
final String[] fields = new String[typeIndex];
for (int i = 0; i < typeIndex; i++) {
final TmfEventField root = new TmfEventField(ITmfEventField.ROOT_FIELD_ID, content.toString(), null);
final ITmfEvent event = new TmfEvent(fEventStream,
- new TmfTimestamp(ts, -3, 0), // millisecs
- source, fTypes[typeIndex], root, String.valueOf(reference));
+ ITmfContext.UNKNOWN_RANK,
+ fEventStream.createTimestamp(ts * 1000000L),
+ fTypes[typeIndex], root);
return event;
} catch (final EOFException e) {
} catch (final IOException e) {