linux.ui: Add CPU entries under Resources View aggregated IRQ entries
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / latency / SystemCallLatencyDensityView.java
CommitLineData
b23cbbfc 1/******************************************************************************
edded5c1 2 * Copyright (c) 2015, 2016 Ericsson
b23cbbfc
MAL
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;
11
12import org.eclipse.jface.viewers.TableViewer;
13import org.eclipse.swt.SWT;
14import org.eclipse.swt.widgets.Composite;
15import org.eclipse.swt.widgets.Table;
b23cbbfc
MAL
16import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityView;
17import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityViewer;
edded5c1 18import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer;
b23cbbfc
MAL
19import org.eclipse.tracecompass.common.core.NonNullUtils;
20
21/**
22 * System Call Density view
23 *
24 * @author Matthew Khouzam
25 * @author Marc-Andre Laperle
26 */
27public class SystemCallLatencyDensityView extends AbstractSegmentStoreDensityView {
28
29 /** The view's ID */
30 public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.density"; //$NON-NLS-1$
31
32 /**
33 * Constructs a new density view.
34 */
35 public SystemCallLatencyDensityView() {
36 super(ID);
37 }
38
39 @Override
40 protected AbstractSegmentStoreTableViewer createSegmentStoreTableViewer(Composite parent) {
41 return new SystemCallLatencyTableViewer(new TableViewer(parent, SWT.FULL_SELECTION | SWT.VIRTUAL)) {
42 @Override
43 protected void createAnalysisColumns() {
44 super.createAnalysisColumns();
45 Table t = (Table) getControl();
46 t.setColumnOrder(new int[] { 2, 3, 0, 1 });
47 }
48 };
49 }
50
51 @Override
52 protected AbstractSegmentStoreDensityViewer createSegmentStoreDensityViewer(Composite parent) {
53 return new SystemCallDensityViewer(NonNullUtils.checkNotNull(parent));
54 }
55
56}
This page took 0.030061 seconds and 5 git commands to generate.