Viewing invocations and callers of a method

The Method Invocation view and table is available only if the collection of execution flow information has been enabled, which you do when launching or attaching to the application to be profiled.  Select the profiling option, My application is too slow then, from the Details options, select Show Execution flow graphical details.  

Using the Method Invocation view you can quickly cycle through the invocations of a selected method. Following these steps:

  1. You can examine method invocations either while studying the Execution Flow view or while studying the Method Statistics view.  From either of these views, right click, then select Show Method Invocation.  The Method Invocation view appears.
  2. Click Refresh Views  refresh button icon to ensure that you are displaying current data.  Note the line:
    status line showing method name and 1/1

    This line displays the name of the method, followed by n/m, where n is the invocation that is currently displayed out of a total of its m invocations. 
  3. Click Previous previous button icon and Next next button icon to browse all invocations of the selected method (or each message to the selected object). The fraction on the toolbar changes to indicate which invocation you are viewing.
  4. To view the caller of the method, click the Show Caller button caller method button icon. The method is displayed along with its caller to the left of it. 
  5. To view more details about the caller of the method for each new invocation that you view, positioning the cursor over the stripe that represents the caller in the view. The status line displays the caller's information.
  6. To see the method that a selected method calls, click the Show Called Method button called method button icon

Related concepts
Overview of the Profiling Tool

Related tasks
Profiling an application
Launching or attaching a Java process