Commit | Line | Data |
---|---|---|
a5c41909 | 1 | /****************************************************************************** |
edded5c1 | 2 | * Copyright (c) 2015, 2016 Ericsson |
a5c41909 MK |
3 | * |
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 | |
8 | * | |
9 | * Contributors: | |
10 | * France Lapointe Nguyen - Initial API and implementation | |
03c96217 | 11 | * Bernd Hufmann - Extracted implementation to a abstract class |
a5c41909 MK |
12 | *******************************************************************************/ |
13 | ||
14 | package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency; | |
15 | ||
a5c41909 | 16 | import org.eclipse.jdt.annotation.Nullable; |
a5c41909 | 17 | import org.eclipse.swt.widgets.Composite; |
0f769d2b | 18 | import org.eclipse.tracecompass.analysis.timing.core.segmentstore.ISegmentStoreProvider; |
edded5c1 | 19 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.scatter.AbstractSegmentStoreScatterGraphViewer; |
660d4ed9 | 20 | import org.eclipse.tracecompass.internal.analysis.os.linux.core.latency.SystemCallLatencyAnalysis; |
a5c41909 | 21 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; |
a5c41909 | 22 | import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils; |
a5c41909 MK |
23 | |
24 | /** | |
25 | * Displays the latency analysis data in a scatter graph | |
26 | * | |
27 | * @author France Lapointe Nguyen | |
28 | * @author Matthew Khouzam - reduced memory usage | |
29 | * @since 1.0 | |
30 | */ | |
aa65365a | 31 | public class SystemCallLatencyScatterGraphViewer extends AbstractSegmentStoreScatterGraphViewer { |
a5c41909 MK |
32 | |
33 | /** | |
34 | * Constructor | |
35 | * | |
36 | * @param parent | |
37 | * parent composite | |
38 | * @param title | |
39 | * name of the graph | |
40 | * @param xLabel | |
41 | * name of the x axis | |
42 | * @param yLabel | |
43 | * name of the y axis | |
44 | */ | |
aa65365a | 45 | public SystemCallLatencyScatterGraphViewer(Composite parent, String title, String xLabel, String yLabel) { |
a5c41909 | 46 | super(parent, title, xLabel, yLabel); |
a5c41909 MK |
47 | } |
48 | ||
49 | @Override | |
0f769d2b | 50 | protected @Nullable ISegmentStoreProvider getSegmentStoreProvider(ITmfTrace trace) { |
aa65365a | 51 | return TmfTraceUtils.getAnalysisModuleOfClass(trace, SystemCallLatencyAnalysis.class, SystemCallLatencyAnalysis.ID); |
a5c41909 MK |
52 | } |
53 | } |