X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=tmf%2Forg.eclipse.tracecompass.tmf.ui%2Fsrc%2Forg%2Feclipse%2Ftracecompass%2Ftmf%2Fui%2Fviews%2Fcallstack%2FCallStackEntry.java;h=74a5f5dee693d1be73ec296aa00c1fa2e7da3e68;hb=4ce4d8af2d43caf202398a2c43586b8e73e2fba7;hp=c388cd232ce92d24eb03482957c055077e974581;hpb=7f86b721fe37b4dcde0211abfd72f27bda634310;p=deliverable%2Ftracecompass.git diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/callstack/CallStackEntry.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/callstack/CallStackEntry.java index c388cd232c..74a5f5dee6 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/callstack/CallStackEntry.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/callstack/CallStackEntry.java @@ -28,6 +28,7 @@ public class CallStackEntry extends TimeGraphEntry { private final int fQuark; private final int fStackLevel; + private final int fProcessId; private final ITmfTrace fTrace; private String fFunctionName; private long fFunctionEntryTime; @@ -43,7 +44,7 @@ public class CallStackEntry extends TimeGraphEntry { * The stack level * @param trace * The trace that this view is talking about - * @deprecated Use {@link #CallStackEntry(String, int, int, ITmfTrace, ITmfStateSystem)} + * @deprecated Use {@link #CallStackEntry(String, int, int, int, ITmfTrace, ITmfStateSystem)} */ @Deprecated public CallStackEntry(int quark, int stackLevel, ITmfTrace trace) { @@ -64,11 +65,42 @@ public class CallStackEntry extends TimeGraphEntry { * The trace that this view is talking about * @param ss * The call stack state system + * @deprecated Use + * {@link #CallStackEntry(String, int, int, int, ITmfTrace, ITmfStateSystem)} */ + @Deprecated public CallStackEntry(String name, int quark, int stackLevel, ITmfTrace trace, @NonNull ITmfStateSystem ss) { super(name, 0, 0); fQuark = quark; fStackLevel = stackLevel; + fProcessId = -1; + fTrace = trace; + fFunctionName = ""; //$NON-NLS-1$ + fSS = ss; + } + + /** + * Standard constructor + * + * @param name + * The parent thread name + * @param quark + * The call stack quark + * @param stackLevel + * The stack level + * @param processId The ID of the process this entry belongs to + * @param trace + * The trace that this view is talking about + * @param ss + * The call stack state system + * @since 2.0 + */ + public CallStackEntry(String name, int quark, int stackLevel, int processId, + ITmfTrace trace, @NonNull ITmfStateSystem ss) { + super(name, 0, 0); + fQuark = quark; + fStackLevel = stackLevel; + fProcessId = processId; fTrace = trace; fFunctionName = ""; //$NON-NLS-1$ fSS = ss; @@ -166,6 +198,16 @@ public class CallStackEntry extends TimeGraphEntry { return fStackLevel; } + /** + * Retrieve the ID of the process this entry belongs to. + * + * @return The ID of the process + * @since 2.0 + */ + public int getProcessId() { + return fProcessId; + } + /** * Retrieve the trace that is associated to this view. *