Commit | Line | Data |
---|---|---|
b23cbbfc MAL |
1 | /****************************************************************************** |
2 | * Copyright (c) 2015 Ericsson | |
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 | ||
10 | package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency; | |
11 | ||
12 | import org.eclipse.jdt.annotation.Nullable; | |
13 | import org.eclipse.swt.widgets.Composite; | |
0f769d2b | 14 | import org.eclipse.tracecompass.analysis.timing.core.segmentstore.ISegmentStoreProvider; |
b23cbbfc | 15 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityViewer; |
660d4ed9 | 16 | import org.eclipse.tracecompass.internal.analysis.os.linux.core.latency.SystemCallLatencyAnalysis; |
b23cbbfc MAL |
17 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; |
18 | import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils; | |
19 | ||
20 | /** | |
21 | * System Call density viewer | |
22 | * | |
23 | * @author Matthew Khouzam | |
24 | * @author Marc-Andre Laperle | |
25 | */ | |
26 | public class SystemCallDensityViewer extends AbstractSegmentStoreDensityViewer { | |
27 | ||
28 | /** | |
29 | * Constructs a new density viewer. | |
30 | * | |
31 | * @param parent | |
32 | * the parent of the viewer | |
33 | */ | |
34 | public SystemCallDensityViewer(Composite parent) { | |
35 | super(parent); | |
36 | } | |
37 | ||
38 | @Override | |
0f769d2b | 39 | protected @Nullable ISegmentStoreProvider getSegmentStoreProvider(ITmfTrace trace) { |
b23cbbfc MAL |
40 | return TmfTraceUtils.getAnalysisModuleOfClass(trace, SystemCallLatencyAnalysis.class, SystemCallLatencyAnalysis.ID); |
41 | } | |
42 | } |