1 /*******************************************************************************
2 * Copyright (c) 2012, 2015 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
.tracecompass
.analysis
.os
.linux
.ui
.views
.controlflow
;
16 import org
.eclipse
.jdt
.annotation
.NonNull
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
18 import org
.eclipse
.tracecompass
.tmf
.ui
.widgets
.timegraph
.model
.TimeGraphEntry
;
21 * An entry in the Control Flow view
23 public class ControlFlowEntry
extends TimeGraphEntry
{
25 private final @NonNull ITmfTrace fTrace
;
26 private final int fThreadId
;
27 private final int fParentThreadId
;
28 private final int fThreadQuark
;
34 * The attribute quark matching the thread
36 * The trace on which we are working
38 * The exec_name of this entry
40 * The TID of the thread
41 * @param parentThreadId
42 * the Parent_TID of this thread
44 * The start time of this process's lifetime
46 * The end time of this process
48 public ControlFlowEntry(int quark
, @NonNull ITmfTrace trace
, String execName
, int threadId
, int parentThreadId
, long startTime
, long endTime
) {
49 super(execName
, startTime
, endTime
);
52 fParentThreadId
= parentThreadId
;
57 * Get this entry's thread ID
61 public int getThreadId() {
66 * Get the entry's trace
68 * @return the entry's trace
70 public @NonNull ITmfTrace
getTrace() {
75 * Get this thread's parent TID
79 public int getParentThreadId() {
80 return fParentThreadId
;
84 * Get the quark of the attribute matching this thread's TID
88 public int getThreadQuark() {
93 public String
toString() {
94 return getClass().getSimpleName() + '(' + getName() + '[' + fThreadId
+ "])"; //$NON-NLS-1$
This page took 0.032038 seconds and 5 git commands to generate.