5.4. The Function Group Editor

The Function Group Editor is accessed at Advanced->Function Aggregation. In most respects the Function Group Editor works exactly like the Process Group Editor (see Section 5.3). It allows to edit function group definitions and to choose a function group for aggregation in a View. The only addition is that functions and function groups are assigned colors via the context menu (see Section 5.5).

When the mouse hovers over the first column of a group entry a tooltip window with the function group's name is shown. For a function a two-lined tooltip with the function name and the full name of the function is shown. The full name (or static path) reflects the original definition of the function or group as stored in the tracefile.

Figure 5-7. The Function Group Editor's context menu

To change the color of any of the functions, select the Color option from the context menu shown in Figure 5-7. A Color dialog box is opened where the preferred color for the given function is selected. The context menu also has the option of assigning the color of the parent node to all the children, using the Assign Color to Children entry. This entry is enabled only if a parent node is selected.

5.4.1. Comparison Mode

In comparison mode (see Chapter 6) the dialog is extended by a label and a combo box that allows to apply the chosen aggregation to the other trace file shown in the View.

Basically using the option "If match found." will try to find a matching function group according to the matching rules explained in Section 6.1.2 and choose it. This works pretty well for predefined groups. If no match is found the aggregation for the other file remains unchanged.

Using the option "Always (Create matching FGroup)." first tries to find a match. If a match is not found then a matching function group in the other files name space is created. Beware that the outcome of this operation will be a function group that will mimic the original group's hierarchical structure but it will only contain functions that are present in both trace files. Use this option with great care.