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.

Prerequisites:

The Execution Statistics view provides a number of controls to allow you to manipulate the information shown within the view:

Working with display modes

  1. There are four display modes available based on the four object types: packages, classes, methods, and instances. To switch between the package, class, method, and instance modes, select one of the following toolbar controls:
  2. The data displayed can also be shown as percentages. To display the data as percentages, select Show as Percentage % icon 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 
Icon for package
Class statistics
Icon for class
Method statistics
Icon for method
Instance statistics
Icon for instance
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

Note: The profiling views are described here using Java. Profiling data from a different application context might change the terms and syntax used in the views. For more information, see Understanding application contexts in profiling views.

Working with columns

There are different controls available that allow you to manipulate the columns displayed in this view.

  1. To specify which columns to display in the view, select the Choose Column Choose column icon button in the toolbar drop-down menu Drop down arrow icon.
  2. In the Choose Columns dialog, select the columns that you want displayed in the view. Click OK to apply the changes.
  3. To show the change in each numeric column since the last refresh, select Show Delta Columns Show Delta icon in the toolbar.
  4. 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

Profiling filters can be applied to the Execution Statistics view 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. See the topic on Applying profiling filters for more details.

Opening other views

Other profiling views and source code views can be opened from the Execution Statistics view.

  1. To open the object references of a selected object, right-click and select Show Object References Show object references. The Object References view will be opened and populated with data for the selected object.
  2. 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 Show method invocation.
  3. To open the source code view of a selected object, right-click and select Open Source Open source icon.

Exporting the data in the view

The data within the Memory Statistics view can be exported to available report formats (for example, HTML or XML).

  1. To export the data in the view, select Report... Export icon in the toolbar. The New Report dialog appears, showing available report types.
  2. Select the report type.
  3. Check the Open editor option to open the document using the default system editor.
  4. Click Next to continue.
  5. Select a parent folder and enter a file name.
  6. Click Finish to generate the report.

Refreshing the view

The Execution Statistics view can be refreshed using the Refresh Refresh Views icon button in the Profiling Monitor toolbar. When the view is refreshed, changes are marked with delta icons:

 


Related concepts
Overview of the Profiling Tool
Profiling resources

Related tasks
Profiling an application
Viewing invocations and callers of a method


(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.