Collecting coverage data for lines and methods

Begin coverage analysis by collecting data for a profiling run.

Prerequisites:

To collect data:
  1. In the Profiling tab (Overview subtab) of the Profile dialog box, select the Code Coverage - Method and Line Level profiling set. (A Code Coverage - Method Level profiling set is also provided, but it collects only method-level coverage data for display in the Coverage Statistics view.)
  2. Click Profile to start your application.
  3. Exercise the parts of your application for which you want to monitor coverage. You can now stop your application
    Note: If you want to collect coverage data for other parts of your application, profile the application again in the same way. The coverage data is collected in a separate data set and is also automatically merged at the host level and above with data collected in earlier runs. To display the host-level profiling resource, open the Profiling Monitor drop-down menu; clear the Hide Host command is preceded by a check mark, click the command to remove the check mark. You can now open the coverage views for the host-level profiling resource.

It is sometimes useful to limit data collection, to flush coverage data, and to collect hit count data. For information, read:

Related tasks
Viewing and analyzing coverage data for lines and methods
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.