Using Sun WorkShop

Graphing a Function or Subroutine Call

To graph a function or subroutine:

  1. Click the Source Browsing radio button in the Browsing window.

  2. Look in the Browsing window title bar to be sure you are in the correct browsing directory.

    If not, choose Browse > Change Browsing Directory and use the Browsing Directory dialog box to select the directory that contains the source browser database.

  3. Choose Browse > Graph Function Calls, or select a function in the source code or Debugging window and choose Browse > Graph Function Calls.

  4. Type the name of a function or subroutine in the Function text box and click Add or press Return.

    If you do not type a function or subroutine name in the text box, the Call Grapher defaults to main.

To display information about the function or subroutine:


Note -

You can change the display of the Call Graph using the commands on the Graph menu (see "Changing the Look of a Call or Class Graph"). You can also print the Call Graph, as described in "Printing a Graph".