Viewing code coverage
Using the Code Coverage Statistics view, you can easily identify classes that are fully utilized, and those that are under utilized which in turn allows you to focus development or test efforts on those under utilized classes. The Code Coverage Statistics view also provides an overview of the classes and methods referenced for a particular task. This can be useful in identifying unexpected method calls. Prerequisites:
- Launching or attaching to an application
- Code Coverage profiling set is enabled.
To view code coverage statistics, follow these steps:
- In Profiling and Logging perspective, select either the monitor or the agent in the Profiling Monitor view.
- Right click and select Open With > Coverage Statistics. The Code Coverage Statistics view opens.
- In the Code Coverage Statistics view, select a method that you want to examine.
- Examine the column % Methods Hit to identify utilization.
- Click on the column title to sort the column.
- To drill down further to the method or class levels, use the toolbar controls to switch to the class level or the method level statistics.
Related concepts
Code Coverage Statistics view
Overview of the Profiling toolRelated tasks
Profiling an application
Launching or attaching a Java process(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.