1 /******************************************************************************
2 * Copyright (c) 2015, 2016 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 * France Lapointe Nguyen - Initial API and implementation
11 * Bernd Hufmann - Extracted implementation to a abstract class
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.internal
.analysis
.os
.linux
.ui
.views
.latency
;
16 import org
.eclipse
.jdt
.annotation
.Nullable
;
17 import org
.eclipse
.swt
.widgets
.Composite
;
18 import org
.eclipse
.tracecompass
.analysis
.os
.linux
.core
.latency
.SystemCallLatencyAnalysis
;
19 import org
.eclipse
.tracecompass
.analysis
.timing
.core
.segmentstore
.ISegmentStoreProvider
;
20 import org
.eclipse
.tracecompass
.analysis
.timing
.ui
.views
.segmentstore
.scatter
.AbstractSegmentStoreScatterGraphViewer
;
21 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
22 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.TmfTraceUtils
;
25 * Displays the latency analysis data in a scatter graph
27 * @author France Lapointe Nguyen
28 * @author Matthew Khouzam - reduced memory usage
31 public class SystemCallLatencyScatterGraphViewer
extends AbstractSegmentStoreScatterGraphViewer
{
45 public SystemCallLatencyScatterGraphViewer(Composite parent
, String title
, String xLabel
, String yLabel
) {
46 super(parent
, title
, xLabel
, yLabel
);
50 protected @Nullable ISegmentStoreProvider
getSegmentStoreProvider(ITmfTrace trace
) {
51 return TmfTraceUtils
.getAnalysisModuleOfClass(trace
, SystemCallLatencyAnalysis
.class, SystemCallLatencyAnalysis
.ID
);