Graphing a Function Call

Related Topics:

Printing a Graph Sizing a Call or Class Graph
Showing a Function or Class Source Graphing a Class Hierarchy
Call Graph Window


Note - You must have a source browsing database to view function relationships. See Source Browsing Databases.

To graph a function call:

1. Choose Browse Graph Function Calls.

The Call Graph Window opens.

2. Type the name of the function in the Function text box.

If no function is entered in the Match text box, the browser defaults to main.

3. Click Add or press Return.

4. Click on a node to select it.

5. Click the buttons below the Call Graph Pane to view the information you want.

The message area at the bottom of the window displays the number of nodes added, the number of nodes displayed out of the number that exist for the current graph, and any error messages.

6. From the Nodes Menu (Call Graph Window), choose commands for other viewing options.

Note - You can graph virtual functions, but the Sun WorkShopTM programming environment cannot determine the actual function that would be called. For example, if main calls b::d(), a virtual function that could actually call b1::d() or b2::d(), Sun WorkShop cannot tell which function is called. The graph shows main calling b::d(), but shows no connection between main and b1::d() or main and b2::d().