1 /*******************************************************************************
2 * Copyright (c) 2013 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.callstack
;
15 import org
.eclipse
.jdt
.annotation
.NonNull
;
16 import org
.eclipse
.linuxtools
.statesystem
.core
.ITmfStateSystem
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.ITmfTrace
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.TimeGraphEntry
;
21 * An entry, or row, in the Call Stack view
23 * @author Patrick Tasse
26 public class CallStackEntry
extends TimeGraphEntry
{
28 private final int fQuark
;
29 private final int fStackLevel
;
30 private final ITmfTrace fTrace
;
31 private String fFunctionName
;
32 private long fFunctionEntryTime
;
33 private long fFunctionExitTime
;
34 private @NonNull ITmfStateSystem fSS
;
37 * Standard constructor
40 * The call stack quark
44 * The trace that this view is talking about
45 * @deprecated Use {@link #CallStackEntry(String, int, int, ITmfTrace, ITmfStateSystem)}
48 public CallStackEntry(int quark
, int stackLevel
, ITmfTrace trace
) {
50 throw new UnsupportedOperationException();
54 * Standard constructor
57 * The parent thread name
59 * The call stack quark
63 * The trace that this view is talking about
65 * The call stack state system
68 public CallStackEntry(String name
, int quark
, int stackLevel
, ITmfTrace trace
, @NonNull ITmfStateSystem ss
) {
71 fStackLevel
= stackLevel
;
73 fFunctionName
= ""; //$NON-NLS-1$
78 * Get the function name of the call stack entry
79 * @return the function name
81 public String
getFunctionName() {
86 * Set the function name of the call stack entry
87 * @param functionName the function name
89 public void setFunctionName(String functionName
) {
90 fFunctionName
= functionName
;
94 * Set the start time of the call stack entry
95 * @param startTime the start time
96 * @deprecated Use {@link #setFunctionEntryTime(long)}
99 public void setStartTime(long startTime
) {
100 throw new UnsupportedOperationException();
104 * Set the end time of the call stack entry
105 * @param endTime the end time
106 * @deprecated Use {@link #setFunctionExitTime(long)}
109 public void setEndTime(long endTime
) {
110 throw new UnsupportedOperationException();
114 * Set the selected function entry time
117 * the function entry time
120 public void setFunctionEntryTime(long entryTime
) {
121 fFunctionEntryTime
= entryTime
;
125 * Get the selected function entry time
127 * @return the function entry time
130 public long getFunctionEntryTime() {
131 return fFunctionEntryTime
;
135 * Set the selected function exit time
138 * the function exit time
141 public void setFunctionExitTime(long exitTime
) {
142 fFunctionExitTime
= exitTime
;
146 * Get the selected function exit time
148 * @return the function exit time
151 public long getFunctionExitTime() {
152 return fFunctionExitTime
;
156 * Retrieve the attribute quark that's represented by this entry.
158 * @return The integer quark
160 public int getQuark() {
165 * Retrieve the stack level associated with this entry.
167 * @return The stack level or 0
169 public int getStackLevel() {
174 * Retrieve the trace that is associated to this view.
178 public ITmfTrace
getTrace() {
183 * Retrieve the call stack state system associated with this entry.
185 * @return The call stack state system
188 public @NonNull ITmfStateSystem
getStateSystem() {
This page took 0.035888 seconds and 5 git commands to generate.