Using Static Graphs

Simplifying Graph Displays

You can further reduce complexity by displaying fewer relationships initially. For example, you can turn off all initial queries and subsequently display only the relationships of interest to you:

1.From the Call Graph, choose "Options: Queries On New Nodes…" and disable all queries. The default queries are "Calls" and " Calls Within". Without any default queries, no arcs are drawn.

2.Save these changes by selecting OK.

3.Choose "Graph: All Functions".

4.Select the functions you want to query on by dragging the left mouse button and drawing a box around those functions. Alternatively, select multiple functions by pressing the Control key while you select function nodes.

5.Post the "Function Actions" popup menu.

6.Choose the desired query.

Filtering Sourceless Nodes

A sourceless node is a node for which there is no source code available, for example, header files. There may be times when you want to see calls to functions you have written and exclude calls to library functions you did not write. For example, you might want to exclude calls to functions defined in X11/Motif libraries. You can apply this filter to the Static Call Graph, Class Graph/Editor, or Query Graph.

In the same way, on the SoftBench Class Graph/Editor you can display classes that are declared but not defined.

To exclude these calls from the Call Graph, Class Graph/Editor, or Query Graph:

1.Choose "View".

2.Deselect the "Display Sourceless Nodes" toggle button.

3.Select OK.

Chapter 10

293

Page 293
Image 293
HP UX SoftBench Software manual Filtering Sourceless Nodes