Selecting Coverage Levels for Individual Modules

Related Topics

 

1.           Open the Default Settings or Executable Settings dialog box, or click Settings in the Run Program dialog box.

2.           Select the PowerCov tab.

3.           Select All Modules and click Configure....

4.           Select a module in the Module Coverage dialog box.

5.           Select whether to record data for functions in the selected module using the default coverage level, line level or function level coverage, or to exclude the module from coverage.

6.           When you have finished making changes, click OK, and then click OK in the settings dialog box.

Notes:

§                  The settings in these dialog boxes apply only to runs of native-compiled (unmanaged) programs.

§                  Click images\modnew.gif to select modules to add to the Module Coverage dialog box. For example, select explicitly loaded modules (such as, LoadLibrary files) that PureCoverage isn't aware of until run time.

§                  Click images\moddel.gif to remove selected modules from the Module Coverage dialog box. If you remove any modules that the current program requires to run, PureCoverage still instruments those modules using the appropriate default coverage level.

§                  Click images\modreset.gif to reset all coverage levels to the PureCoverage defaults.

§                  In the Module list, parentheses indicate default coverage levels, as specified in the PowerCov tab in the settings dialog boxes. For example, if the program uses modules whose coverage levels are specified in the PowerCov tab in the Settings for <exename> dialog box, those modules' coverage levels appear within parentheses.

§                  By default, PureCoverage excludes certain modules in the Windows directories. Some of these modules, known as system modules, are always excluded and you cannot change their coverage level. The coverage level for these modules appears as (System).

§                  PureCoverage uses debug line information to collect line-by-line coverage data. If this debug data is not available for a module, PureCoverage excludes the module.

§                  PureCoverage also requires relocation data to collect data at line or function level. If relocation data is not available for a module, PureCoverage excludes the module. PureCoverage identifies programs that do not contain relocation data by adding (No Relocs) after the executable name in the Module Coverage dialog box.

§                  For changes to the coverage level to take effect, you must rerun the program.

(C) Copyright IBM Corporation 1993, 2010.