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:
- 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.
- 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.