| Resets the zoom window to the full range.
|-
| [[Image:images/prev_event.gif]]
-| Select Previous Event
+| Select Previous State Change
| Selects the previous state for the selected process. Pressing the '''Shift''' key at the same time will update the selection end time of the current selection range.
|-
| [[Image:images/next_event.gif]]
-| Select Next Event
+| Select Next State Change
| Selects the next state for the selected process. Pressing the '''Shift''' key at the same time will update the selection end time of the current selection range.
|-
| [[Image:images/add_bookmark.gif]]
| Resets the zoom window to the full range.
|-
| [[Image:images/prev_event.gif]]
-| Select Previous Event
+| Select Previous State Change
| Selects the previous state for the selected resource. Pressing the '''Shift''' key at the same time will update the selection end time of the current selection range.
|-
| [[Image:images/next_event.gif]]
-| Select Next Event
+| Select Next State Change
| Selects the next state for the selected resource. Pressing the '''Shift''' key at the same time will update the selection end time of the current selection range.
|-
| [[Image:images/add_bookmark.gif]]
Double-clicking on a call stack event will zoom the time graph to the selected function's range of execution.
-Clicking the '''Select Next Event''' or '''Select Previous Event''' or using the left and right arrows will navigate to the next or previous call stack event, and select the function currently at the top of the call stack. Note that pressing the '''Shift''' key at the same time will update the selection end time of the current selection.
+Clicking the '''Select Next State Change''' or '''Select Previous State Change''' or using the left and right arrows will navigate to the next or previous call stack event, and select the function currently at the top of the call stack. Note that pressing the '''Shift''' key at the same time will update the selection end time of the current selection.
Clicking the '''Import Mapping File''' ([[Image:images/import.gif]]) icon will open a file selection dialog, allowing you to import a text file containing mappings from function addresses to function names. If the callstack provider for the current trace type only provides function addresses, a mapping file will be required to get the function names in the view. See the following sections for an example with LTTng-UST traces.
private static final String FOLLOW_CPU_BACKWARD = "Follow CPU Backward";
private static final String FOLLOW_CPU_FORWARD = "Follow CPU Forward";
- private static final String SELECT_PREVIOUS_EVENT = "Select Previous Event";
- private static final String SELECT_NEXT_EVENT = "Select Next Event";
+ private static final String SELECT_PREVIOUS_STATE_CHANGE = "Select Previous State Change";
+ private static final String SELECT_NEXT_STATE_CHANGE = "Select Next State Change";
private static final String SELECT_NEXT_PROCESS = "Select Next Process";
private static final Keyboard KEYBOARD = KeyboardFactory.getSWTKeyboard();
private static final @NonNull ITmfTimestamp START_TIME = TmfTimestamp.fromNanos(1368000272650993664L);
}
/**
- * Test tool bar buttons "Select Next Event" and "Select Previous Event"
+ * Test tool bar buttons "Select Next State Change" and "Select Previous State Change"
*/
@Test
- public void testToolBarSelectNextPreviousEvent() {
- testNextPreviousEvent(() -> fViewBot.toolbarButton(SELECT_NEXT_EVENT).click(),
- () -> fViewBot.toolbarButton(SELECT_NEXT_EVENT).click(SWT.SHIFT),
- () -> fViewBot.toolbarButton(SELECT_PREVIOUS_EVENT).click(),
- () -> fViewBot.toolbarButton(SELECT_PREVIOUS_EVENT).click(SWT.SHIFT));
+ public void testToolBarSelectNextPreviousStateChange() {
+ testNextPreviousEvent(() -> fViewBot.toolbarButton(SELECT_NEXT_STATE_CHANGE).click(),
+ () -> fViewBot.toolbarButton(SELECT_NEXT_STATE_CHANGE).click(SWT.SHIFT),
+ () -> fViewBot.toolbarButton(SELECT_PREVIOUS_STATE_CHANGE).click(),
+ () -> fViewBot.toolbarButton(SELECT_PREVIOUS_STATE_CHANGE).click(SWT.SHIFT));
}
private void testNextPreviousEvent(Runnable selectNext, Runnable shiftSelectNext, Runnable selectPrevious, Runnable shiftSelectPrevious) {
}
});
- /* click "Select Next Event" 3 times */
+ /* click "Select Next State Change" 3 times */
selectNext.run();
timeGraphIsReadyCondition(new TmfTimeRange(TID1_TIME1, TID1_TIME1));
selectNext.run();
fBot.waitUntil(ConditionHelpers.selectionRange(new TmfTimeRange(TID1_TIME3, TID1_TIME3)));
assertTrue(TmfTraceManager.getInstance().getCurrentTraceContext().getWindowRange().contains(TID1_TIME3));
- /* shift-click "Select Next Event" 3 times */
+ /* shift-click "Select Next State Change" 3 times */
shiftSelectNext.run();
timeGraphIsReadyCondition(new TmfTimeRange(TID1_TIME3, TID1_TIME4));
shiftSelectNext.run();
fBot.waitUntil(ConditionHelpers.selectionRange(new TmfTimeRange(TID1_TIME3, TID1_TIME6)));
assertTrue(TmfTraceManager.getInstance().getCurrentTraceContext().getWindowRange().contains(TID1_TIME6));
- /* shift-click "Select Previous Event" 4 times */
+ /* shift-click "Select Previous State Change" 4 times */
shiftSelectPrevious.run();
timeGraphIsReadyCondition(new TmfTimeRange(TID1_TIME3, TID1_TIME5));
shiftSelectPrevious.run();
fBot.waitUntil(ConditionHelpers.selectionRange(new TmfTimeRange(TID1_TIME3, TID1_TIME2)));
assertTrue(TmfTraceManager.getInstance().getCurrentTraceContext().getWindowRange().contains(TID1_TIME2));
- /* click "Select Next Event" 2 times */
+ /* click "Select Next State Change" 2 times */
selectNext.run();
timeGraphIsReadyCondition(new TmfTimeRange(TID1_TIME3, TID1_TIME3));
selectNext.run();
fBot.waitUntil(ConditionHelpers.selectionRange(new TmfTimeRange(TID1_TIME4, TID1_TIME4)));
assertTrue(TmfTraceManager.getInstance().getCurrentTraceContext().getWindowRange().contains(TID1_TIME4));
- /* shift-click "Select Previous Event" 3 times */
+ /* shift-click "Select Previous State Change" 3 times */
shiftSelectPrevious.run();
timeGraphIsReadyCondition(new TmfTimeRange(TID1_TIME4, TID1_TIME3));
shiftSelectPrevious.run();
fBot.waitUntil(ConditionHelpers.selectionRange(new TmfTimeRange(TID1_TIME4, TID1_TIME1)));
assertTrue(TmfTraceManager.getInstance().getCurrentTraceContext().getWindowRange().contains(TID1_TIME1));
- /* shift-click "Select Next Event" 4 times */
+ /* shift-click "Select Next State Change" 4 times */
shiftSelectNext.run();
timeGraphIsReadyCondition(new TmfTimeRange(TID1_TIME4, TID1_TIME2));
shiftSelectNext.run();
fBot.waitUntil(ConditionHelpers.selectionRange(new TmfTimeRange(TID1_TIME4, TID1_TIME5)));
assertTrue(TmfTraceManager.getInstance().getCurrentTraceContext().getWindowRange().contains(TID1_TIME5));
- /* click "Select Previous Event" 5 times */
+ /* click "Select Previous State Change" 5 times */
selectPrevious.run();
timeGraphIsReadyCondition(new TmfTimeRange(TID1_TIME4, TID1_TIME4));
selectPrevious.run();
private static final String NEXT_MARKER = "Next Marker";
private static final String PREVIOUS_MARKER = "Previous Marker";
- private static final String SELECT_NEXT_EVENT = "Select Next Event";
- private static final String SELECT_PREVIOUS_EVENT = "Select Previous Event";
+ private static final String SELECT_NEXT_STATE_CHANGE = "Select Next State Change";
+ private static final String SELECT_PREVIOUS_STATE_CHANGE = "Select Previous State Change";
private static final String ADD_BOOKMARK = "Add Bookmark...";
private static final String REMOVE_BOOKMARK = "Remove Bookmark";
private static final String ADD_BOOKMARK_DIALOG = "Add Bookmark";
KEYBOARD.pressShortcut(Keystrokes.HOME);
KEYBOARD.pressShortcut(Keystrokes.DOWN);
- /* click "Select Next Event" 2 times */
- fViewBot.toolbarButton(SELECT_NEXT_EVENT).click();
+ /* click "Select Next State Change" 2 times */
+ fViewBot.toolbarButton(SELECT_NEXT_STATE_CHANGE).click();
timeGraphIsReadyCondition(new TmfTimeRange(CPU0_TIME1, CPU0_TIME1), CPU0_TIME1);
- fViewBot.toolbarButton(SELECT_NEXT_EVENT).click();
+ fViewBot.toolbarButton(SELECT_NEXT_STATE_CHANGE).click();
timeGraphIsReadyCondition(new TmfTimeRange(CPU0_TIME2, CPU0_TIME2), CPU0_TIME2);
/* click "Add Bookmark..." and fill Add Bookmark dialog */
dialogBot.text().setText("B1");
dialogBot.button(OK).click();
- /* click "Select Next Event" 2 times and shift-click "Select Next Event*/
- fViewBot.toolbarButton(SELECT_NEXT_EVENT).click();
+ /* click "Select Next State Change" 2 times and shift-click "Select Next State Change*/
+ fViewBot.toolbarButton(SELECT_NEXT_STATE_CHANGE).click();
timeGraphIsReadyCondition(new TmfTimeRange(CPU0_TIME3, CPU0_TIME3), CPU0_TIME3);
- fViewBot.toolbarButton(SELECT_NEXT_EVENT).click();
+ fViewBot.toolbarButton(SELECT_NEXT_STATE_CHANGE).click();
timeGraphIsReadyCondition(new TmfTimeRange(CPU0_TIME4, CPU0_TIME4), CPU0_TIME4);
- fViewBot.toolbarButton(SELECT_NEXT_EVENT).click(SWT.SHIFT);
+ fViewBot.toolbarButton(SELECT_NEXT_STATE_CHANGE).click(SWT.SHIFT);
timeGraphIsReadyCondition(new TmfTimeRange(CPU0_TIME4, CPU0_TIME5), CPU0_TIME5);
/* click "Add Bookmark..." and fill Add Bookmark dialog */
fViewBot.toolbarButton(PREVIOUS_MARKER).click();
timeGraphIsReadyCondition(new TmfTimeRange(CPU0_TIME4, CPU0_TIME5), CPU0_TIME5);
- /* click "Select Previous Event" */
- fViewBot.toolbarButton(SELECT_PREVIOUS_EVENT).click();
+ /* click "Select Previous State Change" */
+ fViewBot.toolbarButton(SELECT_PREVIOUS_STATE_CHANGE).click();
timeGraphIsReadyCondition(new TmfTimeRange(CPU0_TIME4, CPU0_TIME4), CPU0_TIME4);
}
private static final @NonNull String SHOW_VIEW_FILTERS = "Show View Filters";
// Separator
private static final @NonNull String RESET_TIME_SCALE = "Reset the Time Scale to Default";
- private static final @NonNull String SELECT_PREVIOUS_EVENT = "Select Previous Event";
- private static final @NonNull String SELECT_NEXT_EVENT = "Select Next Event";
+ private static final @NonNull String SELECT_PREVIOUS_STATE_CHANGE = "Select Previous State Change";
+ private static final @NonNull String SELECT_NEXT_STATE_CHANGE = "Select Next State Change";
// Separator
private static final @NonNull String ADD_BOOKMARK = "Add Bookmark...";
private static final @NonNull String PREVIOUS_MARKER = "Previous Marker";
"",
SHOW_VIEW_FILTERS,
"",
- RESET_TIME_SCALE, SELECT_PREVIOUS_EVENT, SELECT_NEXT_EVENT,
+ RESET_TIME_SCALE, SELECT_PREVIOUS_STATE_CHANGE, SELECT_NEXT_STATE_CHANGE,
"",
ADD_BOOKMARK, PREVIOUS_MARKER, NEXT_MARKER,
"",
final SWTBotView viewBot = fBot.viewById(CallStackView.ID);
// forward 10 times
for (int i = 0; i < 10; i++) {
- viewBot.toolbarPushButton(SELECT_NEXT_EVENT).click();
+ viewBot.toolbarPushButton(SELECT_NEXT_STATE_CHANGE).click();
currentEventOffset++;
fBot.waitUntil(ConditionHelpers.selectionInEventsTable(fBot, TIMESTAMPS[currentEventOffset]));
SWTBotUtils.waitForJobs();
}
// back twice
for (int i = 0; i < 2; i++) {
- viewBot.toolbarPushButton(SELECT_PREVIOUS_EVENT).click();
+ viewBot.toolbarPushButton(SELECT_PREVIOUS_STATE_CHANGE).click();
currentEventOffset--;
fBot.waitUntil(ConditionHelpers.selectionInEventsTable(fBot, TIMESTAMPS[currentEventOffset]));
SWTBotUtils.waitForJobs();
}
};
nextTrace.setText("NextTrace");
- nextTrace.setToolTipText("Select Next Event");
+ nextTrace.setToolTipText("Select Next State Change");
// action8
prevTrace = new Action() {
String IMG_UI_FIRST_PAGE = ICONS_PATH + "elcl16/backward_nav.gif";
String IMG_UI_LAST_PAGE = ICONS_PATH + "elcl16/forward_nav.gif";
String IMG_UI_SHOW_LEGEND = ICONS_PATH + "elcl16/show_legend.gif";
- String IMG_UI_NEXT_EVENT = ICONS_PATH + "elcl16/next_event.gif";
- String IMG_UI_PREV_EVENT = ICONS_PATH + "elcl16/prev_event.gif";
+ String IMG_UI_NEXT_STATE_CHANGE = ICONS_PATH + "elcl16/next_event.gif";
+ String IMG_UI_PREV_STATE_CHANGE = ICONS_PATH + "elcl16/prev_event.gif";
String IMG_UI_ADD_BOOKMARK = ICONS_PATH + "elcl16/add_bookmark.gif";
String IMG_UI_NEXT_BOOKMARK = ICONS_PATH + "elcl16/next_bookmark.gif";
String IMG_UI_PREVIOUS_BOOKMARK = ICONS_PATH + "elcl16/prev_bookmark.gif";
public static String TmfTimeGraphViewer_ResetScaleActionToolTipText;
public static String TmfTimeGraphViewer_LegendActionNameText;
public static String TmfTimeGraphViewer_LegendActionToolTipText;
- public static String TmfTimeGraphViewer_NextEventActionNameText;
- public static String TmfTimeGraphViewer_NextEventActionToolTipText;
- public static String TmfTimeGraphViewer_PreviousEventActionNameText;
- public static String TmfTimeGraphViewer_PreviousEventActionToolTipText;
+ public static String TmfTimeGraphViewer_NextStateChangeActionNameText;
+ public static String TmfTimeGraphViewer_NextStateChangeActionToolTipText;
+ public static String TmfTimeGraphViewer_PreviousStateChangeActionNameText;
+ public static String TmfTimeGraphViewer_PreviousStateChangeActionToolTipText;
public static String TmfTimeGraphViewer_NextItemActionNameText;
public static String TmfTimeGraphViewer_NextItemActionToolTipText;
public static String TmfTimeGraphViewer_PreviousItemActionNameText;
TmfTimeGraphViewer_ResetScaleActionToolTipText=Reset the Time Scale to Default
TmfTimeGraphViewer_LegendActionNameText=Legend
TmfTimeGraphViewer_LegendActionToolTipText=Show Legend
-TmfTimeGraphViewer_NextEventActionNameText=Next Event
-TmfTimeGraphViewer_NextEventActionToolTipText=Select Next Event
-TmfTimeGraphViewer_PreviousEventActionNameText=Previous Event
-TmfTimeGraphViewer_PreviousEventActionToolTipText=Select Previous Event
+TmfTimeGraphViewer_NextStateChangeActionNameText=Next State Change
+TmfTimeGraphViewer_NextStateChangeActionToolTipText=Select Next State Change
+TmfTimeGraphViewer_PreviousStateChangeActionNameText=Previous State Change
+TmfTimeGraphViewer_PreviousStateChangeActionToolTipText=Select Previous State Change
TmfTimeGraphViewer_NextItemActionNameText=Next Item
TmfTimeGraphViewer_NextItemActionToolTipText=Select Next Item
TmfTimeGraphViewer_PreviousItemActionNameText=Previous Item
}
};
- fNextEventAction.setText(Messages.TmfTimeGraphViewer_NextEventActionNameText);
- fNextEventAction.setToolTipText(Messages.TmfTimeGraphViewer_NextEventActionToolTipText);
- fNextEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_NEXT_EVENT));
+ fNextEventAction.setText(Messages.TmfTimeGraphViewer_NextStateChangeActionNameText);
+ fNextEventAction.setToolTipText(Messages.TmfTimeGraphViewer_NextStateChangeActionToolTipText);
+ fNextEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_NEXT_STATE_CHANGE));
}
return fNextEventAction;
}
};
- fPrevEventAction.setText(Messages.TmfTimeGraphViewer_PreviousEventActionNameText);
- fPrevEventAction.setToolTipText(Messages.TmfTimeGraphViewer_PreviousEventActionToolTipText);
- fPrevEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_PREV_EVENT));
+ fPrevEventAction.setText(Messages.TmfTimeGraphViewer_PreviousStateChangeActionNameText);
+ fPrevEventAction.setToolTipText(Messages.TmfTimeGraphViewer_PreviousStateChangeActionToolTipText);
+ fPrevEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_PREV_STATE_CHANGE));
}
return fPrevEventAction;
}
};
- fNextEventAction.setText(Messages.TmfTimeGraphViewer_NextEventActionNameText);
- fNextEventAction.setToolTipText(Messages.TmfTimeGraphViewer_NextEventActionToolTipText);
- fNextEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_NEXT_EVENT));
+ fNextEventAction.setText(Messages.TmfTimeGraphViewer_NextStateChangeActionNameText);
+ fNextEventAction.setToolTipText(Messages.TmfTimeGraphViewer_NextStateChangeActionToolTipText);
+ fNextEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_NEXT_STATE_CHANGE));
}
return fNextEventAction;
}
};
- fPrevEventAction.setText(Messages.TmfTimeGraphViewer_PreviousEventActionNameText);
- fPrevEventAction.setToolTipText(Messages.TmfTimeGraphViewer_PreviousEventActionToolTipText);
- fPrevEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_PREV_EVENT));
+ fPrevEventAction.setText(Messages.TmfTimeGraphViewer_PreviousStateChangeActionNameText);
+ fPrevEventAction.setToolTipText(Messages.TmfTimeGraphViewer_PreviousStateChangeActionToolTipText);
+ fPrevEventAction.setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_PREV_STATE_CHANGE));
}
return fPrevEventAction;