Flushing coverage data for display in the Coverage Details views
When you flush coverage data, you transfer the data that is being collected to a profiling resource so that it can be displayed in the coverage views. Flushing is performed automatically, but under certain circumstances an additional flush configuration is required. If the Annotated Source and Coverage Monitor views report No data available for display after you have collected line and method coverage data, configure a flush of the coverage data to transfer it to the profiling resource during subsequent runs.
Prerequisite: Getting started: Creating a profiling configuration for run-time problem determination
Configure flushes using the Profile dialog box as follows:
- In the Profiling tab, Overview subtab, select the Method and Line Coverage Information profiling set.
- Click the Edit button.
- In the Edit Profiling Set dialog box, highlight the Method and Line Code Coverage entry.
- Check the checkbox for Flush coverage data when any of the following methods run.
- Click the Add button.
- In the Method Event and Pattern Editor dialog box, choose whether the event that triggers the flush is to to be an entry or an exit.
- Enter names or patterns to define at least one method in your application that you know is called when you collect coverage data.
- Click the Create button, and then, in the Edit Profiling Set, the Finish button.
Parent topic
Collecting coverage data for lines and methods