| /******************************************************************************* |
| * Copyright (c) 2016 Ericsson |
| * |
| * All rights reserved. This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| |
| package org.eclipse.tracecompass.internal.analysis.profiling.ui.flamegraph; |
| |
| import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.TimeGraphEntry; |
| |
| /** |
| * An entry, or row, in the flame Graph view |
| * |
| * @author Sonia Farrah |
| */ |
| public class FlamegraphDepthEntry extends TimeGraphEntry { |
| |
| private final int fDepth; |
| private final long fId; |
| |
| /** |
| * Constructor |
| * |
| * @param name |
| * name of an entry |
| * @param startTime |
| * Start time of an entry |
| * @param endTime |
| * The end time of an entry |
| * @param depth |
| * The Depth of an entry |
| * @param id |
| * The id of an entry |
| */ |
| public FlamegraphDepthEntry(String name, long startTime, long endTime, int depth, long id) { |
| super(name, startTime, endTime); |
| fDepth = depth; |
| fId = id; |
| } |
| |
| /** |
| * The depth of a flame graph entry |
| * |
| * @return The depth of a flame graph entry |
| */ |
| public int getDepth() { |
| return fDepth; |
| } |
| |
| /** |
| * The id of an entry |
| * |
| * @return The id |
| */ |
| public long getId() { |
| return fId; |
| } |
| } |