0b72c10289dffcdf3a03eb00df7868d961e21494
1 /*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.analysis
.os
.linux
.core
.latency
;
12 import java
.io
.Serializable
;
14 import org
.eclipse
.jdt
.annotation
.NonNull
;
15 import org
.eclipse
.tracecompass
.segmentstore
.core
.ISegment
;
18 * A linux kernel system call, represented as an {@link ISegment}.
20 * @author Alexandre Montplaisir
23 public class SystemCall
implements ISegment
{
25 private static final long serialVersionUID
= 1554494342105208730L;
28 * The subset of information that is available from the syscall entry event.
30 public static class InitialInfo
implements Serializable
{
32 private static final long serialVersionUID
= -5009710718804983721L;
34 private final long fStartTime
;
35 private final String fName
;
39 * Start time of the system call
41 * Name of the system call
46 fStartTime
= startTime
;
51 private final InitialInfo fInfo
;
52 private final long fEndTime
;
56 * Initial information of the system call
58 * End time of the system call
68 public long getStart() {
69 return fInfo
.fStartTime
;
73 public long getEnd() {
78 * Get the name of the system call
82 public String
getName() {
87 public int compareTo(@NonNull ISegment o
) {
88 int ret
= ISegment
.super.compareTo(o
);
92 return toString().compareTo(o
.toString());
96 public String
toString() {
97 return "Start Time = " + getStart() + //$NON-NLS-1$
98 "; End Time = " + getEnd() + //$NON-NLS-1$
99 "; Duration = " + getLength() + //$NON-NLS-1$
100 "; Name = " + getName(); //$NON-NLS-1$
This page took 0.037638 seconds and 4 git commands to generate.