lttng: Add latency statistics
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / latency / LatencyScatterView.java
CommitLineData
a5c41909
MK
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
10package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency;
d9789e33 11
a5c41909
MK
12import static org.eclipse.tracecompass.common.core.NonNullUtils.nullToEmptyString;
13
14import org.eclipse.jdt.annotation.Nullable;
a5c41909 15import org.eclipse.swt.widgets.Composite;
d9789e33
MK
16import org.eclipse.tracecompass.common.core.NonNullUtils;
17import org.eclipse.tracecompass.tmf.ui.viewers.xycharts.TmfXYChartViewer;
18import org.eclipse.tracecompass.tmf.ui.views.TmfChartView;
a5c41909
MK
19
20/**
21 * Some stuff
22 *
23 * @author Matthew Khouzam
24 */
d9789e33 25public class LatencyScatterView extends TmfChartView {
a5c41909
MK
26 // Attributes
27 // ------------------------------------------------------------------------
28
29 /** The view's ID */
30 public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.scatter"; //$NON-NLS-1$
31
32 private @Nullable LatencyScatterGraphViewer fScatterViewer;
33
34 // ------------------------------------------------------------------------
35 // Constructor
36 // ------------------------------------------------------------------------
37
38 /**
39 * Constructor
40 */
41 public LatencyScatterView() {
42 super(ID);
43 }
44
45 // ------------------------------------------------------------------------
46 // ViewPart
47 // ------------------------------------------------------------------------
48
49 @Override
d9789e33
MK
50 protected TmfXYChartViewer createChartViewer(@Nullable Composite parent) {
51 fScatterViewer = new LatencyScatterGraphViewer(NonNullUtils.checkNotNull(parent), nullToEmptyString(Messages.LatencyScatterView_title), nullToEmptyString(Messages.LatencyScatterView_xAxis),
52 nullToEmptyString(Messages.LatencyScatterView_yAxis));
53 return fScatterViewer;
a5c41909
MK
54 }
55
56}
This page took 0.032473 seconds and 5 git commands to generate.