30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

c<br />

h<br />

a<br />

p<br />

t<br />

e<br />

r<br />

9<br />

Visualizing Programs<br />

and Data<br />

<strong>TotalView</strong> provides a set of tools that let you visualize arrays and<br />

your program’s activity. This chapter describes:<br />

� “Displaying Call Graphs” on page 179<br />

� “Visualizing Array Data” on page 181<br />

If you are running an MPI program, “Displaying the<br />

Message Queue Graph Window” on page 107 describes another visualization<br />

tool.<br />

Displaying Call Graphs<br />

Debugging is an art, not a science. Debugging often means having the intuition<br />

to make guesses about what a program is doing and where to look for<br />

what is causing the problem. Locating a problem is often 90% or more of<br />

the effort. The call graph can help you understand what your program is<br />

doing so that you can begin to understand how your program is executing.<br />

The call graph is a diagram that shows all the currently active routines.<br />

These routines are linked by arrows indicating that one routine is called by<br />

another. The call graph is a dynamic call graph in that it displays the call<br />

graph at the time when <strong>TotalView</strong> creates it. The Update button tells<br />

<strong>TotalView</strong> to recreate this display.<br />

To display a call graph, choose the Tools > Call Graph command in the Process<br />

Window. (A sample call graph is shown on the next page.)<br />

You can tell <strong>TotalView</strong> to display a call graph for the processes and threads<br />

specified with the controls at the top of this window. If you don’t touch<br />

these controls, <strong>TotalView</strong> displays a call graph for the group defined in the<br />

toolbar of your Process Window. If <strong>TotalView</strong> is displaying the call graph for<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!