/*******************************************************************************
- * Copyright (c) 2012, 2013 Ericsson, École Polytechnique de Montréal
+ * Copyright (c) 2012, 2014 Ericsson, École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.controlflow;
-import org.eclipse.linuxtools.lttng2.kernel.core.trace.LttngKernelTrace;
+import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeGraphEntry;
/**
*/
public class ControlFlowEntry extends TimeGraphEntry {
+ private final ITmfTrace fTrace;
private final int fThreadId;
private final int fParentThreadId;
private final int fThreadQuark;
* @param endTime
* The end time of this process
*/
- public ControlFlowEntry(int quark, LttngKernelTrace trace, String execName, int threadId, int parentThreadId, long startTime, long endTime) {
- super(quark, trace, execName, startTime, endTime);
+ public ControlFlowEntry(int quark, ITmfTrace trace, String execName, int threadId, int parentThreadId, long startTime, long endTime) {
+ super(execName, startTime, endTime);
+ fTrace = trace;
fThreadId = threadId;
fParentThreadId = parentThreadId;
fThreadQuark = quark;
return fThreadId;
}
- @Override
- public LttngKernelTrace getTrace() {
- return (LttngKernelTrace) super.getTrace();
+ /**
+ * Get the entry's trace
+ *
+ * @return the entry's trace
+ */
+ public ITmfTrace getTrace() {
+ return fTrace;
}
/**