background image
<< Code Coverage Settings | Instrumentation Control >>
<< Code Coverage Settings | Instrumentation Control >>

Selective Code Coverage Instrumentation

Graphical User Interface
·
Mode: This setting specifies the Instrumentation Modes to be used by Code
Coverage.
·
Default (Optimized for Code Size and Speed): This setting uses one byte per
branch to indicate branch coverage.
·
Compact (Optimized for Memory): This setting uses one bit per branch. This
method saves target memory but uses more CPU time.
·
Report Hit Count: This adds information about the number of times each
branch was executed. This method uses one integer per branch.
·
Prefix (for Ada only): Add a new prefix to Ada packages if the default Code
Coverage prefix (atc_) generates conflicts.
·
Suffix (for Ada only): Specifies how Code Coverage names the instrumented
Ada packages:
·
Select Standard to use the your package name as a suffix
·
Select Short to reduce the size of the generated package name for compilers that
have a package name length limit.
Selective Code Coverage Instrumentation
·
Ternary coverage (for C and C++ only): For C and C++, when this option is
selected, Code Coverage is extended to ternary expressions as statement blocks.
·
Ada specification: For Ada, selecting this option extends instrumentation to Ada
package specifications. Specifications can contain calls and conditions. In this
case, the specification file must be included in the application node.
·
Functions to Exclude from Calls Code Coverage: Specifies a list of functions to
be excluded from the call coverage instrumentation type, such as printf or
fopen. Use the Add, Remove buttons to tell Code Coverage the functions to be
excluded.
Miscellaneous Options
·
Trace File Name (.tio): this allows you to specify a path and filename for the .tio
dynamic coverage trace file.
·
Compute deprecated metrics: This setting is for compatibility with third party
tools designed for previous versions of the product. Set this to No in most cases.
·
User comment: This adds a comment to the Code Coverage Report. This can be
useful for identifying reports produced under different Configurations. To view
the comment, click the a magnifying glass symbol that is displayed at the top of
your source code in the Code Coverage Viewer.
279