Viewing Data in TotalView
TotalView is rich with features to analyze your program’s data.
The Call Stack, Local Variables View, Data View, and Register View
The Call Stack, the Local Variables, Data View, and Registers view all work together to provide views of your data at different points of your running program.
The Local Variables view, Registers view, and the Data View work in concert to display your program’s data in detail.
The Local Variables view displays blocks of variables local to the selected call stack frame. When you move through the backtrace, change the thread of focus or the PC changes, the local variables in the Local Variables view update. The same is true of the Register view which displays the value of general purpose registers and floating point registers local to a call stack frame.
The Data View enables you to create expressions in order to analyze your data. Add new variables to the Data View by either entering the variable name in the Add New Expression field in the Data View, right clicking on the variable and selecting Add to Data View or Add to New Data View from the context menu, or by simply dragging the variable name from the Local Variables view to the Data View. Both views update variable values as your program runs.
The Data View automatically transforms and aggregates your data so that it displays in a way that makes it easy to examine. If you are using Standard Template Library (STL) types, this is especially useful and is analogous to the customized STLView in Classic TotalView.
Edit a wide range of data while debugging your programs, such as variable type and value. If a variable is complex, dive on it to get more detailed information. See Diving on Variables.