public static String ControlFlowView_traceColumn;
public static String ControlFlowView_stateTypeName;
+ public static String ControlFlowView_multipleStates;
public static String ControlFlowView_nextProcessActionNameText;
public static String ControlFlowView_nextProcessActionToolTipText;
public static String ControlFlowView_previousProcessActionNameText;
public static String ControlFlowView_attributeCpuName;
public static String ResourcesView_stateTypeName;
+ public static String ResourcesView_multipleStates;
public static String ResourcesView_nextResourceActionNameText;
public static String ResourcesView_nextResourceActionToolTipText;
public static String ResourcesView_previousResourceActionNameText;
ControlFlowView_traceColumn=Trace
ControlFlowView_stateTypeName=Process
+ControlFlowView_multipleStates=(multiple)
ControlFlowView_nextProcessActionNameText=Next Process
ControlFlowView_nextProcessActionToolTipText=Select Next Process
ControlFlowView_previousProcessActionNameText=Previous Process
ControlFlowView_attributeCpuName=CPU
ResourcesView_stateTypeName=Resource
+ResourcesView_multipleStates=(multiple)
ResourcesView_nextResourceActionNameText=Next Resource
ResourcesView_nextResourceActionToolTipText=Select Next Resource
ResourcesView_previousResourceActionNameText=Previous Resource
/*******************************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
public int getStatus() {
return fStatus;
}
+
+ @Override
+ public String toString() {
+ return "ControlFlowEvent start=" + fTime + " end=" + (fTime + fDuration) + " duration=" + fDuration + " status=" + fStatus; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ }
}
/*******************************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
int status = ((ControlFlowEvent) event).getStatus();
return getMatchingState(status).ordinal();
}
- return State.UNKNOWN.ordinal();
+ return TRANSPARENT;
}
@Override
int status = ((ControlFlowEvent) event).getStatus();
return getMatchingState(status).toString();
}
- return State.UNKNOWN.toString();
+ return Messages.ControlFlowView_multipleStates;
}
private static State getMatchingState(int status) {
/*******************************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
e.printStackTrace();
}
if (lastEndTime != time && lastEndTime != -1) {
- eventList.add(new ControlFlowEvent(entry, lastEndTime, time - lastEndTime, 0));
+ eventList.add(new TimeEvent(entry, lastEndTime, time - lastEndTime));
}
eventList.add(new ControlFlowEvent(entry, time, duration, status));
lastEndTime = time + duration;
/*******************************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
public Type getType() {
return fType;
}
+
+ @Override
+ public String toString() {
+ return "ResourcesEvent start=" + fTime + " end=" + (fTime + fDuration) + " duration=" + fDuration + " type=" + fType + " value=" + fValue; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+ }
}
/*******************************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
private long fLastThreadId = -1; // used to draw the process name label only once per thread id
private enum State {
- UNKNOWN (new RGB(100, 100, 100)),
IDLE (new RGB(200, 200, 200)),
USERMODE (new RGB(0, 200, 0)),
SYSCALL (new RGB(0, 0, 200)),
}
return State.SOFT_IRQ_ACTIVE.ordinal();
} else {
- return -1; // NULL
+ return INVISIBLE; // NULL
}
}
- return State.UNKNOWN.ordinal();
+ return TRANSPARENT;
}
@Override
return null;
}
}
- return State.UNKNOWN.toString();
+ return Messages.ResourcesView_multipleStates;
}
@Override