Method Invocation view and table

The Method Invocation view shows a representation of the entire course of a program's execution and also provides the ability to navigate through the methods that invoked the selected method.  The view uses the same graphical metaphor as the Execution Flow view and the Method Invocation table contains the same information as the Execution Flow table. 

The Method Invocation table can be invoked only from the Method Invocation view, which can only be invoked from Execution Statistics view, and the Execution Flow view.

Display

Here is a sample of the Method Invocation view display:

Method invocation view showing three threads

Stripes cascade to the right as one method calls another method, whose responding method in turn calls another method, and so on. Stripes are grouped in columns by thread. A thin, black vertical line separates one column from another. The name of each thread appears at the top of its column.

Stripes Orange-coloured piece of a stripe
The stripes indicate methods in threads. The color coding denotes the object's class. 
Time Number: 12.5 on gray background
Time is measured in seconds and it's on the vertical axis, starting at the top. The height of a stripe indicates the time spent executing the method.
Names
The top black line indicates that the main, actionPerformed, called init.  Lines are black unless the method is a constructor, in which case the line and labels are red.

In the Method Invocation table, the threads are grouped in the first column and time is recorded in successive rows. The table can be opened by using the Show Invocation Table Icon to show invocation table button in the toolbar.

Controls

Method Invocation provides you with the ability to navigate through the methods that invoked the current method. There are three additional toolbar controls available for this purpose:

Show Caller  a button with stylized icon
To see the method that invoked the current method.
Show Called method   a button with stylized icon
To see the method being invoked by the current method.
Next invocation  a button with stylized icon and Previous invocation  a button with stylized icon
To browse all invocations of the selected method, or each message to the selected method. The view toolbar title dynamically changes to indicate which invocation you are viewing.

Control on the graph

The status line of the Method Invocation graph is also different than in the Execution Flow graph.  Point the mouse over a stripe to display status information, for example:
     Sample status line, as defined below

Related concepts
Overview of the Profiling Tool
Profiling resources
Statistical views
Execution Flow view and table

Related tasks
Profiling an application
Viewing invocations and callers of a method
Tutorial: Analyzing the profiling data from a Java process