The build_struct_transform routine used in the example in the previous section is a Tcl helper function that builds the callbacks and addressing expressions that TotalView needs when it transforms data. It has two required arguments:
name and
members.
The name argument contains a regular expression that identifies the structure or class. In this example,
struct is part of the identifier’s name. It does not mean that you are creating a structure. In contrast, if
stuff is class, you would type:
The members argument names the elements that TotalView will include in the information it will display. This argument contains one or more lists. The example in the previous section contained three lists:
year,
pName, and
pStreet. Here again is the
pName list: