/****************************************************************************** * Copyright (c) 2015, 2016 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * France Lapointe Nguyen - Initial API and implementation * Bernd Hufmann - Extracted implementation to a abstract class *******************************************************************************/ package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency; import org.eclipse.jdt.annotation.Nullable; import org.eclipse.swt.widgets.Composite; import org.eclipse.tracecompass.analysis.timing.core.segmentstore.ISegmentStoreProvider; import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.scatter.AbstractSegmentStoreScatterGraphViewer; import org.eclipse.tracecompass.internal.analysis.os.linux.core.latency.SystemCallLatencyAnalysis; import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils; /** * Displays the latency analysis data in a scatter graph * * @author France Lapointe Nguyen * @author Matthew Khouzam - reduced memory usage * @since 1.0 */ public class SystemCallLatencyScatterGraphViewer extends AbstractSegmentStoreScatterGraphViewer { /** * Constructor * * @param parent * parent composite * @param title * name of the graph * @param xLabel * name of the x axis * @param yLabel * name of the y axis */ public SystemCallLatencyScatterGraphViewer(Composite parent, String title, String xLabel, String yLabel) { super(parent, title, xLabel, yLabel); } @Override protected @Nullable ISegmentStoreProvider getSegmentStoreProvider(ITmfTrace trace) { return TmfTraceUtils.getAnalysisModuleOfClass(trace, SystemCallLatencyAnalysis.class, SystemCallLatencyAnalysis.ID); } }