1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
4 * All rights reserved. This program and the accompanying materials are made
5 * 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.tracecompass
.internal
.analysis
.os
.linux
.ui
.views
.latency
.statistics
;
14 import static org
.eclipse
.tracecompass
.common
.core
.NonNullUtils
.checkNotNull
;
16 import org
.eclipse
.jdt
.annotation
.NonNull
;
17 import org
.eclipse
.jdt
.annotation
.Nullable
;
18 import org
.eclipse
.swt
.widgets
.Composite
;
19 import org
.eclipse
.tracecompass
.analysis
.timing
.ui
.views
.segmentstore
.statistics
.AbstractSegmentStoreStatisticsViewer
;
20 import org
.eclipse
.tracecompass
.internal
.analysis
.os
.linux
.core
.latency
.statistics
.SystemCallLatencyStatisticsAnalysisModule
;
21 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.TmfAbstractAnalysisModule
;
24 * A tree viewer implementation for displaying latency statistics
26 * @author Bernd Hufmann
29 public class SystemCallLatencyStatisticsViewer
extends AbstractSegmentStoreStatisticsViewer
{
31 private static final String SYSCALL_LEVEL
= checkNotNull(Messages
.LatencyStatistics_SyscallLevelName
);
37 * the parent composite
39 public SystemCallLatencyStatisticsViewer(Composite parent
) {
44 * Gets the statistics analysis module
46 * @return the statistics analysis module
49 protected @Nullable TmfAbstractAnalysisModule
createStatisticsAnalysiModule() {
50 SystemCallLatencyStatisticsAnalysisModule module
= new SystemCallLatencyStatisticsAnalysisModule();
55 protected @NonNull final String
getTotalLabel() {
56 return checkNotNull(Messages
.LatencyStatistics_TotalLabel
);
60 protected @NonNull final String
getTypeLabel() {