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 />

quickly see the result. You can even use this technique to display several<br />

arrays simultaneously.<br />

Launching the Visualizer from the Command Line<br />

To start the Visualizer from the shell, use the following syntax:<br />

visualize [ –file filename | –persist ]<br />

where:<br />

–file filename Reads data from filename instead of reading from standard<br />

input. For information on crating this file, see “Setting<br />

the Visualizer Launch Command” on page 194.<br />

–persist Continues to run after encountering an EOF (End-of-<br />

File) on standard input. If you don’t use this option, the<br />

Visualizer exits as soon as it reads all of the data.<br />

By default, the Visualizer reads its datasets from standard input and exits<br />

when it reads an EOF. When started by <strong>TotalView</strong>, the Visualizer reads its<br />

data from a pipe, ensuring that the Visualizer exits when <strong>TotalView</strong> does. If<br />

you want the Visualizer to continue to run after it exhausts all input, invoke<br />

it by using the –persist option.<br />

If you want to read data from a file, invoke the Visualizer with the –file<br />

option:<br />

visualize –file my_data_set_file<br />

The Visualizer reads all the datasets in the file. This means that the images<br />

you see represent the last versions of the datasets in the file.<br />

The Visualizer supports the generic X toolkit command-line options. For<br />

example, you can start the Visualizer with the Directory Window minimized<br />

by using the –iconic option. Your system manual page for the X server or<br />

the X Window System User’s <strong>Guide</strong> by O’Reilly & Associates lists the generic X<br />

command-line options in detail.<br />

You can also customize the Visualizer by setting X resources in your<br />

resource files or on the command line with the –xrm resource_setting<br />

option. Using X resources to modify the default behavior of <strong>TotalView</strong> or<br />

the Visualizer is described in greater detail on our Web site at http://<br />

www.totalviewtech.com/Documentation/xresources/XResources.pdf.<br />

Configuring <strong>TotalView</strong> to Launch the Visualizer<br />

<strong>TotalView</strong> launches the Visualizer when you select the Tools > Visualize<br />

command from the Variable Window. It also launches it if or when you use a<br />

$visualize function in an eval point and the Tools > Evaluate Dialog Box.<br />

<strong>TotalView</strong> lets you set a preference that disables visualization. This lets you<br />

turn off visualization when your program executes code that contains eval<br />

points, without having to individually disable all the eval points.<br />

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

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

Saved successfully!

Ooh no, something went wrong!