Viewing invocations and callers of a method
Prerequisites:
Using the Method Invocation view you can quickly cycle through the
invocations of a selected method.
- In Profiling and Logging perspective, select either the monitor or the agent in the Profiling Monitor view.
- Right click and select Open With > Method Statistics. The Method Statistics view opens.
- In the Method Statistics view, select a method that you want to examine.
- Right click and select Show Method Invocation.
The Method Invocation view opens.
- Click Refresh Views
to ensure that you are displaying current data. Note the line:

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.
- Click Previous
and Next
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.
- To view the caller of the method, click the Show Caller button
. The method is
displayed along with its caller to the left of it.
- 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.
- To see the method that a selected method calls, click the
Show Called Method button
.
Related concepts
Overview of the Profiling Tool
Related tasks
Profiling an application
Launching or attaching a Java process
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.