1 /*******************************************************************************
2 * Copyright (c) 2012, 2014 Ericsson, École Polytechnique de Montréal
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 * Geneviève Bastien - Move code to provide base classes for time graph view
12 *******************************************************************************/
14 package org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.ui
.views
.controlflow
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.ITmfTrace
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.TimeGraphEntry
;
20 * An entry in the Control Flow view
22 public class ControlFlowEntry
extends TimeGraphEntry
{
24 private final ITmfTrace fTrace
;
25 private final int fThreadId
;
26 private final int fParentThreadId
;
27 private final int fThreadQuark
;
33 * The attribute quark matching the thread
35 * The trace on which we are working
37 * The exec_name of this entry
39 * The TID of the thread
40 * @param parentThreadId
41 * the Parent_TID of this thread
43 * The start time of this process's lifetime
45 * The end time of this process
47 public ControlFlowEntry(int quark
, ITmfTrace trace
, String execName
, int threadId
, int parentThreadId
, long startTime
, long endTime
) {
48 super(execName
, startTime
, endTime
);
51 fParentThreadId
= parentThreadId
;
56 * Get this entry's thread ID
60 public int getThreadId() {
65 * Get the entry's trace
67 * @return the entry's trace
69 public ITmfTrace
getTrace() {
74 * Get this thread's parent TID
78 public int getParentThreadId() {
79 return fParentThreadId
;
83 * Get the quark of the attribute matching this thread's TID
87 public int getThreadQuark() {
92 public String
toString() {
93 return getClass().getSimpleName() + '(' + getName() + '[' + fThreadId
+ "])"; //$NON-NLS-1$
This page took 0.069276 seconds and 5 git commands to generate.