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.

Visualizing Array Data<br />

Figure 126: <strong>TotalView</strong><br />

Visualizer Relationships<br />

Action Click or Press<br />

Reset r<br />

Initialize I<br />

Exit or Quit Ctrl-Q<br />

How the Visualizer Works<br />

The Visualizer is a stand-alone program to which <strong>TotalView</strong> sends information.<br />

Because it is separate, you can use it in more than one way; for example:<br />

� When you launch it from within <strong>TotalView</strong>, you can see your program’s<br />

data as you are debugging your program.<br />

� If you save the data that would be sent to the Visualizer, you can view it<br />

later by invoking the Visualizer from the command line. (See<br />

Figure 126.)<br />

<strong>TotalView</strong><br />

Launch Third<br />

Party Visualizer<br />

Third Party<br />

Visualizer<br />

Launch Visualizer<br />

from <strong>TotalView</strong><br />

Save Data<br />

to File<br />

<strong>TotalView</strong><br />

Visualizer<br />

Visualizer<br />

Data File<br />

� Because <strong>TotalView</strong> is sending a data stream to the Visualizer, you can<br />

even replace our Visualizer with any tool that can read this data.<br />

The online Help contains information on adapting a third-party visualizer so that it<br />

can be used with <strong>TotalView</strong>. This is also on our web site at http://<br />

www.totalviewtech.com/Documentation/latest/html/User_<strong>Guide</strong>/<br />

AdaptingaThirdPartyVisualizer.html.<br />

Viewing Data Types in the Visualizer<br />

Launch Visualizer<br />

from Command Line<br />

The data selected for visualization is called a dataset. <strong>TotalView</strong> treats stack<br />

variables at different recursion levels or call paths as different datasets.<br />

<strong>TotalView</strong> can visualize one- and two-dimensional arrays of integer or floating-point<br />

data. If an array has more than two dimensions, you can visualize<br />

part of it using an array slice that creates a subarray having fewer dimensions.<br />

Figure 127 on page 183 shows a three-dimensional variable sliced so<br />

that one of the dimensions is invariant.<br />

182 Chapter 9: Visualizing Programs and Data

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

Saved successfully!

Ooh no, something went wrong!