Method graph view

  
  up next 


  The method graph view shows a statically calculated thread resolved call graph for selected methods.

To calculate a call graph, click  Generate graph in the tool bar or select Edit->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 method graph wizard is brought up. The resulting graph is static and can be re-calculated be executing  Generate graph again. The method graph wizard remembers your last selection.

  The references graph has the following properties:
  • Methods are painted as rectangles. The rectangle includes information about
    • The method name without parameters. In order to see the parameters of a method, switch on signature tooltips in the method graph view settings or select the corresponding check item in the context menu.
    • The total time (including calls into unfiltered methods)
    • The inherent time (excluding calls into unfiltered methods)
    • The number of calls into this method
  • The method rectangles have a background coloring which - depending on the method graph view settings is taken from a gray to red scale for increasing
    • inherent time
    • or total time

    The percentage base is

    • the time spent in the displayed methods only
    • or the time spent in all methods
  • Method calls are painted as arrows, the arrowhead points from the caller toward the callee. If you move the mouse over the call arrow, a tooltip window will be displayed that shows details for the particular call.
  • Method call arrows have a color which is taken from a black to red scale for an increasing percentage in execution time. In this way you can spot the most important calls of a method without checking their tooltips one by one.

By default, the method graph only shows the direct incoming and outgoing calls of the initially selected methods. You can expand the graph by double clicking on any method. This will expand the direct incoming and outgoing calls for that method. Selective actions for expanding the graph are available in the toolbar, the Edit menu and the context menu:

  •  Show calling methods
  •  Show called methods
  •  Add methods to graph, to add other unrelated methods to the graph. The method selection dialog will then be displayed.

You can hide methods by selecting them and pressing the delete key. You can select multiple methods and delete them together.

The reference graph offers a number of navigation and zoom options.