Reducing Instrumentation Overhead

HCL OneTest Embedded Source Code Insertion (SCI) technology is designed to reduce both performance and memory overhead to a minimum. Nevertheless, for certain cross-platform targets, it may need to be reduced still further. There are three ways to do this.

Limiting Code Coverage Types

When using the Code Coverage feature, procedure input and simple and implicit block code coverage are enabled by default. You can reduce instrumentation overhead by limiting the number of coverage types.

Note The Code Coverage report can only display coverage types among those selected for instrumentation.

Instrumenting Calls (C Language)

When calls are instrumented, any instruction that calls a C user function or library function constitutes a branch and thus generates overhead. You can disable call instrumentation on a set of C functions using the Selective Code Coverage Instrumentation Settings.

For example, you can usually exclude calls to standard C library functions such as printf or fopen.

Optimizing the Information Mode

When using Code Coverage, you can specify the Information Mode which defines how much coverage data is produced, and therefore stored in memory.

Related Topics

Estimating Instrumentation Overhead | Selecting Coverage Types | Information Modes