Adds a fieldPrevPrio() method in the layout to access the
priority of the previous process. Up to now, we could access
the previous process' name, but its priority can be useful.
Change-Id: I52c9ae1f3ba377139702e8cd4a6aad75cac7757c
Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Reviewed-on: https://git.eclipse.org/r/70503
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
private static final String CHILD_TID = "child_tid"; //$NON-NLS-1$
private static final String PRIO = "prio"; //$NON-NLS-1$
private static final String NEW_PRIO = "newprio"; //$NON-NLS-1$
private static final String CHILD_TID = "child_tid"; //$NON-NLS-1$
private static final String PRIO = "prio"; //$NON-NLS-1$
private static final String NEW_PRIO = "newprio"; //$NON-NLS-1$
+ private static final String PREV_PRIO = "prev_prio"; //$NON-NLS-1$
private static final String NEXT_PRIO = "next_prio"; //$NON-NLS-1$
private static final String COMM = "comm"; //$NON-NLS-1$
private static final String NAME = "name"; //$NON-NLS-1$
private static final String NEXT_PRIO = "next_prio"; //$NON-NLS-1$
private static final String COMM = "comm"; //$NON-NLS-1$
private static final String NAME = "name"; //$NON-NLS-1$
+ /**
+ * @since 2.0
+ */
+ @Override
+ public String fieldPrevPrio() {
+ return PREV_PRIO;
+ }
+
/** @since 1.0 */
@Override
public String fieldNextPrio() {
/** @since 1.0 */
@Override
public String fieldNextPrio() {
*/
String fieldNewPrio();
*/
String fieldNewPrio();
+ /**
+ * The field with the prev priority. This is used in the scheduler's switch
+ * event to show the priority of the thread being scheduled out.
+ *
+ * @return the name of the field with the priority of the previous thread
+ * @since 2.0
+ */
+ String fieldPrevPrio();
+
/**
* The field with the next priority. This is used in the scheduler's switch
* event to show the priority of the next thread or process.
/**
* The field with the next priority. This is used in the scheduler's switch
* event to show the priority of the next thread or process.
private static final String CHILD_COMM = "child_comm";
private static final String CHILD_TID = "child_tid";
private static final String PRIO = "prio";
private static final String CHILD_COMM = "child_comm";
private static final String CHILD_TID = "child_tid";
private static final String PRIO = "prio";
+ private static final String PREV_PRIO = "prev_prio";
private static final String NEXT_PRIO = "next_prio";
private static final String NEW_PRIO = "newprio";
private static final String COMM = "comm";
private static final String NEXT_PRIO = "next_prio";
private static final String NEW_PRIO = "newprio";
private static final String COMM = "comm";
+ @Override
+ public String fieldPrevPrio() {
+ return PREV_PRIO;
+ }
+
@Override
public String fieldNextPrio() {
return NEXT_PRIO;
@Override
public String fieldNextPrio() {
return NEXT_PRIO;
return "newprio"; //$NON-NLS-1$
}
return "newprio"; //$NON-NLS-1$
}
+ @Override
+ public String fieldPrevPrio() {
+ return "prev_prio"; //$NON-NLS-1$
+ }
+
@Override
public String fieldNextPrio() {
return "next_prio"; //$NON-NLS-1$
@Override
public String fieldNextPrio() {
return "next_prio"; //$NON-NLS-1$