1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 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
.lttng2
.kernel
.core
.trace
.LttngKernelTrace
;
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 int fThreadId
;
25 private final int fParentThreadId
;
26 private final int fThreadQuark
;
32 * The attribute quark matching the thread
34 * The trace on which we are working
36 * The exec_name of this entry
38 * The TID of the thread
39 * @param parentThreadId
40 * the Parent_TID of this thread
42 * The start time of this process's lifetime
44 * The end time of this process
46 public ControlFlowEntry(int quark
, LttngKernelTrace trace
, String execName
, int threadId
, int parentThreadId
, long startTime
, long endTime
) {
47 super(quark
, trace
, execName
, startTime
, endTime
);
49 fParentThreadId
= parentThreadId
;
54 * Get this entry's thread ID
58 public int getThreadId() {
63 public LttngKernelTrace
getTrace() {
64 return (LttngKernelTrace
) super.getTrace();
68 * Get this thread's parent TID
72 public int getParentThreadId() {
73 return fParentThreadId
;
77 * Get the quark of the attribute matching this thread's TID
81 public int getThreadQuark() {
This page took 0.04128 seconds and 5 git commands to generate.