Using the Execution Statistics view
The Execution Statistics views displays statistics about the application execution time.
It provides data such as the number of methods called, and the amount of time taken
to to execute every method. Execution statistics are available at the package, class, method and instance level.
The Execution Statistics view provides a number of controls to allow you
to manipulate the information shown within the view:
Working with display modes
- There are four display modes are available based on the four object types: packages, classes, and instances.
To switch between the package, class, and instance modes, select one of the following
toolbar controls:
- Package Level information

- Class Level information

- Method Level information

- Instance Level Information

- The data displayed can also be shown as percentages. To display the data as percentages,
select Show as Percentage
in the toolbar.
The data displayed depends what object type is selected.
The following table summarizes the data available in each display mode.
Column heading |
Package statistics
 |
Class statistics
 |
Method statistics
 |
Instance statistics
 |
Base Time: For any invocation, the base time is the time taken to
execute the invocation, excluding the time spent in other methods that
were called during the invocation.
|
The summed base time for the classes in the
package |
The summed base time for the methods in the class |
The time spent executing a given method |
Time |
Average Base Time: The base time divided by the number of calls. |
Available |
Available |
Available |
Not available |
Inherited Base Time: Similar to the base time spent in the selected package or
class including the time spent in other
inherited methods that were called during the invocation.
|
The summed base time for the classes in the
package |
The summed base time for the methods in the class |
Not available |
Time |
Cumulative Time: For any invocation, the cumulative time is the time taken to
execute all methods called from an invocation. If an invocation
has no additional method calls, then the cumulative time will
be equal to the base time.
|
The summed cumulative time for the classes in
the package |
The time spent executing the methods in the class |
The time spent executing the given method. |
Time |
Inherited Cumulative Time: Similar to the cumulative time of the selected package or
class including the time spent in other
inherited methods that were called during the invocation.
|
The summed cumulative time for the classes in
the package |
The time spent executing the methods in the class |
Not available |
Time |
Calls: The number of calls made by a selected method.
|
Not available |
Accumulated by class |
Count |
Not available |
Inherited Calls: The number of calls made by a method and by its inherited
methods.
|
Accumulated by package |
Accumulated by class |
Not available |
Count |
Cumulative CPU Time: The amount of CPU time spent in a method.
|
Accumulated by package |
Accumulated by class |
Accumulated by method |
Not available |
Working with columns
There are different controls available that allow you to manipulate the columns displayed in this view.
- To specify which columns to display in the view, select the Choose Column
button in the toolbar.
- In the Choose Columns dialog, select the columns that you want displayed in the view. Click OK to apply the changes.
- To show the change in each numeric column since the last refresh, select Show Delta Columns
in the toolbar.
- To sort column data, click the title of a column. Click the title of the
column again to sort it in reverse order. The title of the column is
prefixed with > if the column is sorted in ascending order
or with < if it is sorted in descending order.
Filtering profiling data
The Memory Statistics view provides a filter mechanism which allows you to reduce
the amount of data shown in the view. Profiling filters can be used across
different profiling views as long as the view supports the filter.
- To work with filters, from the toolbar menu, select Manage Filters
.
- To add a new filter, select New.
- In the Edit Filters dialog, select Profiling Filter and click OK.
- Define your filter by using one or both of the Filter mechanisms on the two
tabs: Standard or Advanced. The Standard tab lets you
quickly set some simple, common filters. The Advanced tab lets you create
highly customized filters.
- To define a standard filter:
- To filter out data that matches a pattern, specify a string pattern in the Filter String
field.
- Select the object type to filter by, i.e. fitler by package, class or method.
- Click the Show information matching check box if you want only
a specific set of data. Use the drop-down boxes to define the filter. In the example below,
the filter is specified to show the highest 10 entries
by the number of calls.

- To define an advanced filter:
- Click the Advanced tab. The Advanced filtering table shows all the
filter criteria defined. Profiling data entries that match one or more of the criteria will
be filtered out of the view.
- To add an entry in the table, click Add. Select the attribute you
want to filter on from Attribute list. Select
the operator (like performs a pattern match). Enter a value that profiling data entry
must have for that attribute in order to be filtered:
- Use an asterisk (*) to represent any string.
- Use a bar (|) to represent a non-exclusive "or".
Click OK.
- To edit an existing entry, select it, click Edit and modify the
fields.
- To remove an entry, select it and click Remove.
To edit an existing filter, select Manage filters from the toolbar or select the
filter listed in the drop down menu. When a filter is selected and applied in the view, click on the Filter button to edit the filter. If there is no filter applied, clicking on the Filter button will open the Filter creation dialog.
Opening other views
Other profiling views and source code views can be opened from the Execution Statistics view.
- To open the object references of a selected object, right-click and select
Show Object References
.
The Object References view will be opened and populated with data for the selected object.
- To open the Method Invocation view on method, you need to be switch to the
Package, Class or Method display mode. Select a method, right-click and select
Show Method Invocation
.
- To open the source code view of a selected object, right-click and select Open Source
.
Exporting the data in the view
The data within the Memory Statistics view can be exported to an HTML document.
- To export the data in the view, select Export to HTML
in the toolbar.
- In the Export to HTML dialog, specify the file name that the data will be saved to.
- Click OK to save the data.
Refreshing the view
The Memory Statistics view can be refreshed using the Refresh
button in the toolbar. When the view is refreshed, changes are marked with delta icons:
- The delta icons
and
indicate that there is a change in
the numeric value (increase or decrease respectively) for that
particular cell since the last time the table was refreshed.
- The diamond
indicates new
occurrences since the last time the Refresh Views button
from the Profiling Monitor view was pressed.
Related concepts
Overview of the Profiling Tool
Profiling resources
Related tasks
Applying profiling filters
Profiling an application
Identifying memory-intensive classes
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.