Diving is integral to the TotalView GUI and provides a quick, intuitive, and effective way to get more information about various program elements. Diving is usually performed by just double-clicking on an element and generally launches a window with more information. You can dive on variables of course, but also on processes and threads, the call stack, functions, and source code.To dive on a variable, just double-click on it or highlight it and select View > Dive to launch a Variable Window, Figure 11.
Figure 11: Diving on a variable in the Stack Frame Local variables are visible in the Stack Frame as in Figure 11, while global variables are available in the Source Pane.In the Source Pane, if a global variable or function can be dived on, a red dotted box appears when your cursor hovers over it, Figure 12.
Figure 12: Diving on an object in the Source Pane For example, the Stack Frame Pane in the Process Window contains the current call stack. When you dive on a routine, TotalView shows the routine in the Source Pane and its variables in the Stack Frame Pane.
Figure 13: Diving on a routine Use Tools > Call Graph to launch a dynamic diagram that shows all the currently active routines. Click Update to recreate this display in a running programUse Tools > Parallel Backtrace View to view the status of thousands of processes from a single window.Use the Variable Window’s Tools > Visualize to view array data as a graph or in the Visualizer, a versatile, stand-alone program that can be launched directly from within TotalView or separately via the command line.
On the View > Dive In All command: “Displaying an Array of Structure’s Elements” in the TotalView User Guide
On displaying assembler code: “Viewing the Assembler Version of Your Code” in the TotalView User Guide
On viewing processes and threads: ”Displaying a Variable in all Processes or Threads” in the TotalView User Guide
Rogue Wave Software, Inc. |
Voice: (303) 473-9118 |
rwonlinedocs@roguewave.com |