Call Graph Tab - Data Browser Window (Memory Profiling)

Illustration       Related Topics

Use the Call Graph to view the dynamic call structure of your program, and highlight the call paths where programs allocate most of their memory.

By default, the Call Graph highlights the path from the method with the largest amount of allocated memory back to a program's beginning; thicker lines indicate higher memory-use paths. You can highlight methods based on various criteria, including methods with source code, calling relationships, and areas of heavy memory use where you may find memory leaks.

Use the shortcut menu to show additional methods, filter out non-critical methods, and focus on specific subtrees.

In the Call Graph, Purify indicates whether all or only some descendants of a selected method are visible:

images\cgexp.gif

No descendants are visible

images\cgslash.gif

Only some of the immediate descendants are visible

images\cgcoll.gif

All descendants are visible

In the status bar of the Data Browser window, Purify displays:

§          The number of methods visible in the Call Graph and the total number of methods in the current dataset

§          The number of highlighted methods visible in the Call Graph, and the total number of highlighted methods in the current dataset

§          The name of the currently highlighted method

You can do the following operations in the Call Graph:

To

Do this

Display method or line details

Pause the cursor over a method or line to display information about it. Double-click a method to view its details, including a list of allocated objects, if any, in a Function Detail window.

Display methods

Right-click in the Call Graph and select Expand/Collapse and the appropriate command from the shortcut menu. You can also click images\cgexp.gif to display a method's immediate descendants. Click images\cgcoll.gif or images\cgslash.gif to remove from view all of the method's descendants.

Move methods

Drag a method to any location in the Call Graph. If necessary, Purify uses curved lines to indicate that the method is located in advance of its actual position in the program's calling structure. You can redisplay the Call Graph using Purify's default layout by clicking the Redo Layout tool images\relayic.gif in the window.

Highlight specific methods

Select a category from the Highlight drop-down list. For example, you can highlight methods that include memory data from hidden methods. For more information about the categories, click images\shortcut.gif

Change colors

Right-click in the Call Graph and select Colors and the appropriate command from the shortcut menu. You can change the color of lines, text background, and highlighting.

Scale the Call Graph

Drag the Zoom slider to the left or to the right.

Scroll the Call Graph

Use the scroll bars, or click the background of the Call Graph to display the hand cursor and then move the cursor left, right, up, or down.

Restore the layout

Click the Redo layout tool images\relayic.gif to restore the Call Graph to Purify's default layout.

Display the Overview

Click the Toggle Overview tool images\cgovwic.gif in the Call Graph. The Call Graph Overview window is a docking window. Click the Toggle Overview tool again to close the overview window.

Move the toolbars

Drag them to any location on your desktop.

Notes:

§      By default, Purify displays commas in numeric values, as in 1,244,329.68. You can turn off this setting in the Preferences dialog box.

§      If your system supports 256 or fewer colors, the colors displayed might not match exactly the colors you select.

§      In the Call Graph for a diff, methods and paths where memory use has been reduced are highlighted in green, red where it has increased.

§      Right-click in the Call Graph to display a shortcut menu for working with the Call Graph.

(C) Copyright IBM Corporation 1992, 2010.