Using the Code Coverage Statistics view

The Coverage Statistics view displays usage statistics for a selected type of object. Coverage statistics are available at the package, class, method and instance level.

 

Displays

This view is made of a table where the first column presents the list of items.
First node is always a summary of all the collected coverage information. It gives an overall rate for method coverage of the loaded classes.

Three display modes are available depending on what is shown in the first column:

These modes have an effect on sorting and filtering actions but not on the rates displayed for each level. In Class mode, the second column shows its package. In Method mode, the second column shows its class and the third its package.

Statistics displayed for each object type

The data displayed depends what object is selected. The statistics available for each object are summarized in the table below.

Column heading Package statistics 
Class statistics
Method statistics
Calls

The number of method calls.

Accumulated by package for the loaded classes Accumulated by class Count
Methods missed

The number of methods that have not been exercised.

Accumulated by package for the loaded classes Accumulated by class
 
missed or empty
Methods hit

The number of methods that have been exercised.

Accumulated by package for the loaded classes

 
Accumulated by class empty or hit
% Methods hit

 The rate between the two numbers above.

A rate for the loaded classes of each package A rate by class  empty

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.

 

Controls

The following controls are available in the Coverage Statistics view.

Toolbar controls

Icon Definition
Display the package statistics
Display the class statistics
Display the method statistics
Open the source of a selected item.
Select the columns to be displayed, or Sort by column.
Export records to available report formats. The New Report dialog allows you to select the report type and open the document using the default system editor.

Pop-up menu controls

Icon Definition
Refresh the view.
Choose the columns to display.
Sort by column.
Filter out the selected object.
Open the source of a selected item.

Filtering

The view provides filtering based on the name of the package, class, or method. You can also filter on time or heap size and on particular attributes of the package, class, method, or object instance.

Column controls

Click the title of a column to sort it. 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.
Columns can be hidden or shown.
Also a Choose Columns pop-up menu item is available to select which columns should be hidden and visible and their relative order

Related concepts
Overview of the Profiling tool
Profiling resources  

Related tasks
Applying profiling filters
Profiling an application