5

Data Display



5.1    Introduction

In order to get the most from WindView and the event data you collect, you will want to familiarize yourself with how WindView displays your data. Your WindView installation includes several sample files of data that you can view immediately. Figure 5-1 shows the view graph that appears if you open installDir/host/src/windview/samples/vxColor.wvr using Open from the main File menu.

Figure 5-1:   View Graph with Event Data

This chapter provides details of all the information available in the view graph and how to display exactly the portion of the event log you need to understand your application. You may want to review the summary of view graph features in 2.3.2 The View Graph. For a detailed description of all the WindView controls, see the online help.



5.2    Controlling the Displayed Interval

The WindView tool bar and the event pop-up menu provide two ways to control the interval displayed in the view graph. (These controls are also available in the main menu bar.)

The Tool Bar

Figure 5-2 shows the WindView tool bar. You can zoom in and out to show a shorter or longer time interval using the (zoom in) and (zoom out) buttons on the tool bar. The zoom factor drop-down combo box ( ) allows you to specify how far the display zooms each time you click a button. The default is 2; shows you half the current view and shows you twice the current view. To change the zoom factor, type a number in the box or select one from the drop-down menu. To return directly to a display showing the entire log, press the button (zoom 100%). To select a specific interval, click and drag over the interval and then press .    

Figure 5-2:   WindView Tool Bar

The other tool bar buttons allow you to control what data is displayed and to generate analog data associated with your event log. For more information, see 5.6 Filtering for Data of Interest and 5.5 Viewing Analog Information.

The Event Pop-Up Menu

Figure 5-3 shows the event pop-up menu. Right click anywhere on the view graph to open it. The menu provides Zoom In and Zoom Out options, plus a Zoom menu with multiple options including 100%. You can select a specific interval by clicking and dragging, then clicking Zoom In.    

Figure 5-3:   Event Pop-up Menu with Secondary Zoom Menu

Use Refresh whenever you need to update the view graph display.

Selecting Context State brings up the Context State Information window (see Figure 5-4), which displays information about the context closest to where the cursor was located when the menu was called. Selecting Show Event brings up the Show Event dialog box for the closest event (see Figure 5-8).   

Figure 5-4:   Context State Information Window

The Help command in the event pop-up menu has two sub menus. The Help>Nearest Event sub-menu item is a shortcut to the WindView online event dictionary; it displays the detailed description for the event nearest to the point in the view graph where you right-click to bring up the menu. The event dictionary is a part of the online WindView User's Reference. The Help>Legend command is a shortcut to the summary descriptions of WindView event icons and state stipples (see Figure 5-9). The Properties command displays a Log Properties dialog (see Figure 5-10).



5.3    Viewing Context Information

The Task Pop-Up Menu

Figure 5-5 shows the task pop-up menu. Right-click on any task name to open it. This menu allows you to specify which tasks are displayed on the view graph. You can hide tasks one-by-one You can hide tasks one-by-one, all tasks, or tasks in the current time interval which have no activity. Tasks can be exposed in a similar manner, one by one, all tasks, or only tasks which have activity in the visible time interval. Use the Expose submenu to show the ones you want to see.

In addition, selecting Information brings up the Context State Summary dialog box (see Figure 5-6). Selecting Attributes brings up the Context Attributes dialog box (see Figure 5-14). This dialog box shows a complete list of task names, task IDs, and CPU numbers, and allows you to select multiple tasks to show or hide on the display.    

Figure 5-5:   Task Pop-up Menu with Secondary Expose Menu

Context State Information

Bring up the Context State Information window (see Figure 5-4) by selecting Context State in the event pop-up menu. The time and context are those closest to the point where you clicked to bring up the pop-up menu. The window also tells you the priority of the task, its state, when it entered that state, and how long it remained in that state.

Context State Summary

Bring up the Context State Summary window (see Figure 5-6) by selecting Information from the task pop-up menu. The context name and ID are given for the context you clicked nearest to. The initial and final times specify an interval, and the main window displays a series of statistics about the context during that interval. You can change the interval over which statistics are calculated by selecting Whole Log, Selection, or Screen Width from the combo box and then clicking Recalculate. (You must select an interval by clicking and dragging before bringing up the Context State Summary window, or the Selection interval will be the same as the Screen Width.)

Figure 5-6:   Context State Summary Window

The main statistics displayed are the number of times the context entered each state and the maximum, minimum, average, and total time it spent in each state. Dismiss the window by clicking Close.



5.4    Viewing Event Information

The Status Bar

The status bar displays information relating to events and times pointed to by the mouse cursor on the viewgraph and is used to display information from the viewgraph.

Event Display

Event Timestamp

Duration Between Selected Timestamps

Figure 5-7:   Status Bar With Task Selected

The Show Event Dialog Box

There are two ways to bring up a Show Event dialog box similar to Figure 5-8:

  • Double-click on an event icon.
  • Right-click on an event icon, then click Show Event in the pop-up menu.

 

Figure 5-8:   Show Event Dialog Box

When the Show Event dialog box appears, the lower portion contains information on the event you selected. It lists all the instrumented information for the event. In addition, WindView initializes the search fields in the upper portion of the dialog box with the event type, context, and object ID (if you are using AIL logging) of the selected event. You can view adjacent events in the log by clicking the Prev and Next buttons. To limit the search to the currently displayed event type, context, or object, check the Lock box to the right of the appropriate item. The Visible Contexts Only checkbox allows you to limit search to contexts that are visible. This is especially useful when you have unimportant contexts hidden. If the Visible Contexts Only checkbox is un-checked all contexts are searched regardless of whether they are hidden. As an example, in Figure 5-8 the search is limited to events of type taskPrioritySet. Clicking the Next button displays the next taskPrioritySet event in the log.

You can also use the Show Event dialog box to search for other events. The Event and Context selection boxes have drop-down lists which include every event type and every context that occurs in the active log. Select the event type or the context name and number from the lists.


*      
NOTE: If you wish to search for a user-defined event, you must know how you defined it, for example user10 or user99. Select user from the list and add the correct number to it.

The Legend Window

For online information on what each event icon and state stipple represents, click either the WindView Help>Legend entry in the main Help menu or Help>Event Legend from the event pop-up menu (shown in Figure 5-3). Figure 5-9 shows the Legend window, which lists the event names with their associated icons. For detailed information, click on any event or stipple within the Legend; this opens the Event Dictionary entry associated with that item.

Figure 5-9:   Legend Window

The Event Dictionary

The Event Dictionary is available in the online WindView User's Reference. To view it, use one of the following methods:

  • Right-click on an event and select Help>Nearest Event from the event pop-up menu.
  • Select Event Dictionary from the contents tab of the WindView Help menu.
  • Click on the event name in the event legend help topic.
  • Open the Tornado online help library and navigate to the WindView User's Reference.

The Event Dictionary summarizes the information available about a specific event. It indicates what might have caused the event to occur, what may result from it, and what information is logged about that event at each level of logging.


*      
NOTE: The Event Dictionary provides general entries for intEnt and user-defined events. However, in the view graph these events are of specific types. For example, you may have an intEnt-8 event, meaning that your application has passed control to interrupt level 8, or you may have an event called user10. You will not be able to call up the general Event Dictionary entry using the Help item in the event pop-up menu. Instead, use one of the other methods to reach the entry.

Log Properties Dialog Box

To bring up the Log Properties dialog, right-click on the view graph then click Properties in the event popup menu. Figure 5-10 shows the Log Properties dialog, which gives information about how the log was generated.The Log Properties dialog also shows information about merged logs.

Figure 5-10:   Log Properties Dialog Box



5.5    Viewing Analog Information

Analysis Packs

Click on the button on the WindView tool bar to bring up the Analysis dialog box. See Figure 5-11.   

Figure 5-11:   WindView Analysis Tools

Select any analysis pack of interest. You can include all contexts in the analysis by clicking Select All or you can limit the analysis to one or more specific contexts by selecting them individually. When you click Perform, WindView performs a calculation on the current log file.

Splitting the View Graph

The Memory Usage analysis pack exports its results to the view graph. To view the calculated information, click Export to Graph. The calculated data is immediately displayed (see Figure 5-12). The secondary analog window uses the same time scale and shows the same interval as the main window.   

Figure 5-12:   Divided Screen for Analog Data

Exporting Data to Excel (Windows only)

The CPU Usage analysis pack exports its results to Excel. To view the calculated information, click Export to Excel. Excel is started and the calculated data is immediately displayed (see Figure 5-13). You can now use the Excel functionality to analyze this data.        

Figure 5-13:   Excel Spreadsheet for Analog Data

Exporting Data to File (UNIX Only)

When you export results from the CPU Usage analysis pack on a UNIX host, the data is saved in a comma separated variable format file, with an extension of .csv. You can import files of this format into spreadsheet programs or inspect them as plain text in an editor. The data is arranged in the same columns and rows as the Excel file shown in Figure 5-13.



5.6    Filtering for Data of Interest

To zero in on specific data, it is helpful to eliminate information that is not currently of interest from the view graph. This filtering of the displayed data does not affect what data is stored in the event log. The selections you make in the Collection Configuration dialog box determine what data is in the log, while filtering determines what logged data to display. There are four ways to filter the data that is displayed in the view graph:

  • Task pop-up menu
  • Context Attributes dialog box
  • Hide non-executing states button
  • Filter Events/States dialog box

Specify Which Tasks to Display

Task pop-up menu

Display the task pop-up menu by right-clicking on any task name on the view graph (see Figure 5-5). You can eliminate tasks from the display one by one by bringing up the menu for each task and clicking on the task name where it appears on the menu. You can also select Hide Inactive to hide tasks that do not have any events active in the region currently displayed. Expose Active has the opposite function, displaying all tasks that have events in the region currently displayed. Finally, you can Hide All tasks or Expose All tasks. The number of tasks hidden, if any, appears at the bottom right of the view graph in the status bar and a sub-menu listing them appears when the cursor is over Expose. To show any hidden task, select it on this submenu. If there are more that 30 hidden tasks in the Expose submenu an extra menu item More will appear on the bottom of the menu. Clicking this item will bring up the Context Attributes dialog box (Figure 5-14).


*      
NOTE: You cannot hide the idle task.

Context Attributes dialog box

Selecting Attributes from the task pop-up menu displays the Context Attributes dialog box (see Figure 5-14). This dialog box allows you to show and hide tasks by checking or unchecking the box beside each task name. You can also highlight multiple tasks using SHIFT+CLICK and CTRL+CLICK and show or hide them as a group using the Change Visibility buttons.

You can also enter regular expressions in the Pattern field to simplify the selection process. For example, if your Context Attributes dialog box looks like Figure 5-14 and you want to hide all task contexts (in other words, all contexts whose names start with "t", type t* in the Pattern box and click Hide; all contexts starting with "t" will be unchecked and will be hidden as soon as you click OK.   

Figure 5-14:   Context Attributes Dialog Box

Hide Nonexecuting States

One way to simplify the view graph is not to display the state stipples for any tasks except the executing task. Use the button to toggle the state stipple display on and off. You can also reach this function by selecting Hide Nonexecuting States in the View menu or by unchecking Nonexecuting States in the Filter Events/States dialog box (see Figure 5-15).

The Filter Events/States Dialog Box

The Filter Events/States dialog box (see Figure 5-15) provides the most comprehensive tools to tailor the view graph display. Access it by clicking the button or by selecting Filter Events from the View menu.   

Figure 5-15:   Filter Events/States Dialog Box

Events that will be displayed are shown in reverse video. To unselect them, click on them. By default, tick, interrupt, and network events are unselected. This is because events of these types are usually generated in high volumes. At lower zoom levels large numbers of such events can slow the drawing of the view graph and can obscure other events of interest. If you encounter such problems try zooming in to the region of interest first and then selecting the high volume events in the Filter Events/States dialog.

In addition, you can add or remove the following items by checking or unchecking them:

  • UD Event IDs (the IDs of any user-defined events)
  • Nonexecuting States (state stipples for all tasks except the executing one)
  • Transition Lines (the lines that connect a previous context to the current context)
  • Interrupt Transitions (the lines that connect a previous context to an interrupt)


*      
NOTE: If you collect a log at CSE level, the Nonexecuting States option is unavailable because the log does not contain this data.