To calculate a call graph, click
Generate
graph in the tool bar or select View->Generate Graph
from JProfiler's main menu. If a graph has been calculated, the context menu also
provides access to this action.
Before a graph is calculated, the
call graph wizard
is brought up. The resulting graph is static and can be re-calculated be executing
Generate
graph again. The call graph wizard remembers your last selection.
Package names are shortened by default with only the last package name shown in full. For example, com.mycorp.myapp.mypackage becomes c.m.m.mypackage. You can disable package shortening in the view settings.
The percentage base is
If applicable, an node has plus signs at the left and the right side to show or hide
calling and called nodes. The controls at the left side are
for calling, the controls at the right side for called nodes. The plus signs have
the same effect
as the Show calling nodes
and the
Show called nodes
actions. Additionally, the plus signs give you the indication that there might be
nodes to display
and that you have not yet tried to expand them.
The first time the outgoing calls of a node are expanded, only calls above the threshold
that is
configured in the view settings are displayed.
If there still are outgoing calls below below the threshold, a
shaded icon is shown on the right side.
If you expand again, all outgoing calls are displayed.
You can hide nodes by selecting them and pressing the delete key. You can select
multiple nodes and delete them together. Alternatively, you can select the
remove nodes from graph
action from the graph toolbar or the context menu.
If you delete methods, the call graph may contain a number of unconnected branches.
To clean up the graph, select a method on the branch that should be retained and select
the
cleanup unconnected methods
action from the graph toolbar or the context menu. The "remove all but selected nodes"
action in the
context method allows you to trim the graph to a few selected nodes.
Any modification to the call graph can be reverted with the
undo action. If you open a large number of
calls and want to track back to a previous state of the graph, hit this button repeatedly.
If you hit undo too may times, a
redo action
is also available. Consecutive undo/redo is useful for replaying what happens to the
graph when expanding a node.
The call graph offers a number of navigation and zoom options.