Viewing Individual Elements in an Array of Structures
If you have an array of structures data object, you may wish to analyze a particular field of the structure in all the elements of the array; this would require expanding all the elements and then scrolling through the expanded array and visually searching through for that single field.
To avoid this painstaking process, use the Dive-In-All command to display a single field of a structure in an array of structures as a new array across all the structures. This makes it much easier to look at the values of only that field.
How Dive In All Works
In Figure 73, the array of structures strucArray in the left pane contains 20 structures, far more than the Data View can actually display. After you select the Dive in All command with element a selected, TotalView creates a new array in the Data View that contains all these a elements across all structures, shown in the right pane.
Figure 73, Dive In All creates a new array to visualize a single element across structures
Accessing Dive In All
To Dive-In-All on a variable, right-click a field in a single element of the array in the Data View, and choose Dive In All (short for “dive in all elements”) from the context menu.
Figure 74, Dive In All context menu
NOTE: If the array created after a Dive-In-All command is a scalar type, you can display more detail by right-clicking it and selecting Show Statistics. See Viewing Array Statistics.