1 /*******************************************************************************
2 * Copyright (c) 2014, 2015 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 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.lttng2
.ust
.ui
.analysis
.callstack
;
15 import static org
.eclipse
.tracecompass
.common
.core
.NonNullUtils
.checkNotNull
;
17 import org
.eclipse
.tracecompass
.internal
.lttng2
.ust
.core
.callstack
.LttngUstCallStackProvider
;
18 import org
.eclipse
.tracecompass
.lttng2
.ust
.core
.trace
.LttngUstTrace
;
19 import org
.eclipse
.tracecompass
.tmf
.core
.exceptions
.TmfAnalysisException
;
20 import org
.eclipse
.tracecompass
.tmf
.core
.statesystem
.ITmfStateProvider
;
21 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
22 import org
.eclipse
.tracecompass
.tmf
.ui
.views
.callstack
.AbstractCallStackAnalysis
;
25 * Call-stack analysis to populate the TMF CallStack View from UST cyg-profile
28 * @author Alexandre Montplaisir
30 public class LttngUstCallStackAnalysis
extends AbstractCallStackAnalysis
{
36 public boolean setTrace(ITmfTrace trace
) throws TmfAnalysisException
{
37 if (!(trace
instanceof LttngUstTrace
)) {
40 return super.setTrace(trace
);
44 protected LttngUstTrace
getTrace() {
45 return (LttngUstTrace
) super.getTrace();
49 protected ITmfStateProvider
createStateProvider() {
50 return new LttngUstCallStackProvider(checkNotNull(getTrace()));