/
SWSLatencyDensityView.java
50 lines (43 loc) · 2.06 KB
/
SWSLatencyDensityView.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
* Copyright (c) 2021 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.swslatency;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.tracecompass.analysis.os.linux.core.swslatency.SWSLatencyAnalysis;
import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density2.AbstractSegmentStoreDensityView;
import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density2.AbstractSegmentStoreDensityViewer;
import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer;
import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.SegmentStoreTableViewer;
/**
* Sched_wakeup / sched_switch Density view
*
* @author Abdellah Rahmani
*/
public class SWSLatencyDensityView extends AbstractSegmentStoreDensityView {
/** The view's ID */
public static final String ID = "org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.schedwakeupschedswitchlatency.density"; //$NON-NLS-1$
/**
* Constructs a new density view.
*/
public SWSLatencyDensityView() {
super(ID);
}
@Override
protected AbstractSegmentStoreTableViewer createSegmentStoreTableViewer(Composite parent) {
return new SegmentStoreTableViewer(new TableViewer(parent, SWT.FULL_SELECTION | SWT.VIRTUAL), SWSLatencyAnalysis.ID, false) {
};
}
@Override
protected AbstractSegmentStoreDensityViewer createSegmentStoreDensityViewer(Composite parent) {
return new SWSDensityViewer(parent);
}
}