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.

Examining and Analyzing Arrays<br />

Figure 217: Sorted Variable<br />

Window<br />

Notice how the and and or operators are used in these expressions. The<br />

way in which <strong>TotalView</strong> computes the results of an expression is identical<br />

to the way it computes values at an eval point. For more information, see<br />

“Defining Eval Points and Conditional Breakpoints” on page 366.<br />

Using Filter Comparisons<br />

<strong>TotalView</strong> provides several different ways to filter array information. For<br />

example, the following two filters display the same array items:<br />

> 100<br />

$value > 100<br />

The following filters display the same array items:<br />

>0: 0 && $value < 100<br />

The only difference is that the first method is easier to type than the second,<br />

so you’re more likely to use the second method when you’re creating<br />

more complicated expressions.<br />

Sorting Array Data<br />

<strong>TotalView</strong> lets you sort the displayed array data into ascending or descending<br />

order. (It does not sort the actual data.) To sort (or remove the sort),<br />

click the Value label.<br />

� The first time you click, <strong>TotalView</strong> sorts the array’s values into ascending<br />

order.<br />

� The next time you click on the header, <strong>TotalView</strong> reverses the order, sorting<br />

the array’s values into descending order.<br />

� If you click again on the header, <strong>TotalView</strong> returns the array to its unsorted<br />

order.<br />

Here is an example that sorts an array into descending order:<br />

When you sort an array’s values, you are just rearranging the information<br />

that’s displayed in the Variable Window. Sorting does not change the order<br />

342 Chapter 15: Examining Arrays

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

Saved successfully!

Ooh no, something went wrong!