On-the-fly code coverage

Code Coverage for C and C++

By default code coverage generates a report when the execution ends. The On-the-fly mode generates code coverage results dynamically during the execution. This is useful for applications that never exit or to interact with the execution during the analysis, for example if you want to stop the code coverage when you reach at a given coverage rate threshold.

To enable the On-the-fly mode in Code Coverage:

  1. In the Project Explorer, click the Settings button.

  2. Select a node in the Project Explorer pane.

  3. In the Configuration Settings list, expand Runtime Analysis and select Coverage > Advanced Options > On-the-fly frequency dump.

  4. Specify the number of function calls after which the coverage results are updated during execution. 0 means that there is no on-the-fly updating and that results are only generated at the end of the execution.

  5. When you have finished, click OK to validate the changes.

Related Topics

Code Coverage settings