Prism 6.0 User's Guide

Displaying Performance Data

The tnfview program supplies several different ways to view TNF probe data. You start tnfview by selecting Display TNF Data from the Prism Performance menu, or by issuing the tnfview command from the Prism command line. For example,

(prism all) tnfview myfile.tnf

You do not need to specify a file name as an argument to the tnfview command unless you want to select an alternative TNF data file, created earlier or in another session. Prism will remember the TNF data file name created most recently during the current session.

The main window of tnfview displays a timeline view of the TNF probe trace data. The secondary window, the Graph window, displays several graphical views of datasets that you can create from the probe trace data. The three views provided by the Graph window are:

Figure 6-1 shows the main window of the TNF Viewer with a 16-process MPI program loaded. It is within this window that you examine the sequences of events, displayed as colored shapes, that make up your program's execution. This window requires you to operate primarily with a mouse.

Figure 6-1 Timeline View

Graphic

Using the tnfview Timeline Window

The main tnfview screen displays the timeline of events generated by your program. Events of different types are represented by different colored shapes. Clicking on a single event selects it. Shift-clicking selects additional events.

The main window of tnfview has several control and display areas (in addition to the timeline graph):

Table 6-3 Timeline Navigation Menu Categories

Menu Category 

Definition 

current probe  

Probe name. 

current tid  

Solaris thread ID. 

current lwpid  

Solaris lightweight process ID.  

cpu 

Always zero for user-level traces.  

current pid 

Solaris process ID.  

current vid  

Virtual thread ID - A logical thread ID assigned when trace files from different nodes are merged. 

time  

Strict time sequence, by millisecond. 

Opening TNF Trace Files

The Open Tracefile selection on the File menu opens the Open File dialog box. Use this dialog box to select a trace file for performance analysis.

Figure 6-2 Open File Dialog Box

Graphic

Bookmarking Events

You can set a bookmark. in the Timeline window on any selected event. Such bookmarks enable you to return to a specific view in the Timeline window. Bookmarks remain only for the duration of the current session. Once a bookmark has been set, you can select it from the Bookmark menu. Selecting a bookmark will return you to the event, restoring the contents of the Event Table and the zoom and scroll factors that were in effect when the bookmark was set.

Navigating and Controlling the tnfview Timeline Window

The tnfview Timeline Window uses a set of mouse commands for each region of its window. The tnfview mouse commands for each region are shown in Table 6-4 through Table 6-7.

Table 6-4 Timeline Graph Mouse Commands

Command 

Description 

Left Click 

Select an event and clear previous selections 

Shift-Left Click 

Select an additional event and add it to the set of selected events 

Middle Drag 

Select area for zoom 

Middle Click 

Center view around point 

Scroll Bars 

Scroll view of graph at current zoom factor 

Scale Bars 

Adjust zoom factor of each axis independently 

Table 6-5 Panner Graph Mouse Commands

Command 

Description 

Left Drag 

Drag view rectangle 

Middle Drag 

Select area of timeline for viewing 

Table 6-6 Navigation Control Mouse Commands

Command 

Description 

Left Arrow Button 

Select previous event 

Right Arrow Button 

Select next event 

Pull-down Menu 

Select navigation criteria 

Table 6-7 Event Table Mouse Commands

Command 

Description 

Left Click 

Select an event 

Up/Down Arrows (Keyboard) 

Select next/previous event in table  

Exiting tnfview

From the File menu, choose Exit to exit tnfview.

Exiting tnfview eliminates data generated during the current tnfview session. The tnfview program does not save generated datasets, bookmarks (described in "Bookmarking Events"), or any settings chosen during the session. Your original trace file remains unchanged.

Using the tnfview Graph Window

Clicking on the Graph button of the Timeline window opens the tnfview Graph window with the Plot tab selected. Once you have created and selected a dataset from the events or intervals in your trace file, tnfview displays a scatter plot of that dataset.

You can display, in addition to scatter plot graphs, tables and histograms of the dataset. You can also modify parameters (axis values) of each graph.

Figure 6-3 Scatter Plot View

Graphic

To create a dataset, use the features on the left panel of the Graph window. You can:

Creating an Event Dataset

Click the "Choose a type of event" button to open the Event Selection window (see Failed Cross Reference Format). The window displays a list of the event types (probes) defined in the current tracefile. Selecting a set of events, such as the set of all MPI_Send_start events, then clicking on Done causes the Graph window to automatically display a scatter plot of the dataset of all MPI_Send_start events. The Graph window also supplies a histogram (opened using the Histogram tab) of the event set. The table shows only interval latencies. Nothing is displayed for single events in the table.

Figure 6-4 Event Selection Window

Graphic

Creating a New Interval

You create new intervals by clicking the "Create a new blank interval" button in the Graph window. You can then proceed to edit the new interval's definition. By pairing events in intervals, you can create the tools to measure the parts of your MPI code that you are most interested in analyzing.

Editing Interval Definitions

If you select an interval and click the "Edit this interval definition" button, the Interval Editor window opens (see Failed Cross Reference Format). You can change the displayed events and data by selecting items from the lists shown by clicking the adjoining Change buttons.

Figure 6-5 Interval Editor

Graphic

Collecting an Interval Dataset

If you select an interval from the Interval Definitions list, then click the "Create a dataset from this interval definition" button, a new entry will appear on the "Choose Dataset" menu. You can then display and manipulate the dataset.

Selecting a Dataset to Plot

If you select an event or interval from the list under "Choose Dataset," the graph displays a scatter plot, table (for intervals only), or histogram, depending on which tab of the Show Dataset pane is currently selected. The "Choose Dataset" menu distinguishes single-event datasets from double-event (interval) datasets by displaying [1] after the names of single event datasets, and [2] after the names of interval datasets. For example, if MPI_Finalize_start is a single event dataset, and MPI_Send is an interval dataset, the "Choose Dataset" menu displays them:

MPI_Finalize_start[1]
MPI_Send[2]

Adjusting the Scatter Plot Graph Axes

You can select alternative values for the X and Y axes on the graph. For example, Latency, the default value for the Y axis in the scatter plot graph, is the difference in time between the first event in an interval and the second event. You can replace Latency with other values, such as Time Order, or specific fields in either event of the selected interval. Define the axis values by choosing from the lists in either the X axis or Y axis rows below the scatter plot graph. The values in those lists are:

The data fields of the event become available for selection in the second list of the same row. This allows you to use a data value of a selected event as an axis of the graph.

Updating the Graph

To update a scatter plot graph or histogram after changing an axis parameter, press the Refresh button.

Selecting a Point in the Scatter Plot

Each point in the scatter plot corresponds to a data point in the displayed dataset.

Clicking on any data point in the scatter plot causes the timeline graph to select the corresponding event or interval, displaying the detailed data of that event or interval in the Timeline window's event table.

For datasets with one event, one event will be shown in the Timeline window. If the dataset comes from an interval definition, then each dot in the scatter plot represents two events, and two events will be shown in the Timeline window.

For example, clicking on the furthest outlying data point in the scatter plot graph shown in Failed Cross Reference Format navigates the Timeline window to the corresponding event or interval, as shown in Failed Cross Reference Format.

Figure 6-6 Navigating the Timeline View to the Data Point Selected in the Scatter Plot View

Graphic

Then, zooming in to the data points closest to the selected data point displays a finer grain view of the dataset. (To center the timeline display on the selected data point, click it with the middle mouse button.) Failed Cross Reference Format shows an example.

Figure 6-7 Zooming In for a Finer Grain View of the Dataset

Graphic

Note the selected area in the panner graph, indicating the area of the previous graph covered by the zoom.

Opening the Table View

Clicking the Table tab on the Graph view window opens a tabular presentation of the selected dataset. See Failed Cross Reference Format for an example:

Figure 6-8 Table View

Graphic

The Table view displays four columns:

Opening the Histogram View

Clicking the Histogram tab on the Graph view window opens a histogram presentation of the selected dataset. For example:

Figure 6-9 Histogram View

Graphic

Clicking on a Bucket in the Histogram

Click the left mouse button on a bar in the histogram graph to display three sets of values for the data points represented by that bar. These values are:

These values are displayed in a Histogram Bar Statistics dialog box, as shown in Failed Cross Reference Format.

Figure 6-10 Histogram Bar Statistics Dialog Box

Graphic

Specifying the Metric of the Histogram

You can select alternative values for the histogram metric. For example, you could choose Latency (the default), Time Order, or specific fields in either event of the selected interval. Define the axis values by choosing from the list located below the histogram graph. The values in those lists are:

The data fields of the event become available for selection in the second list of the same row. This allows you to use a data value of a selected event as a metric of the histogram graph.