Use the Method and Line Code Coverage page to select options for the Method and Line Code Coverage profiling type.
To open the Method and Line Code Coverage page, open the Profiling and Logging perspective. From the main menu, click Code Coverage - Method and Line Level profiling set and click Edit, then Next.
, and select or create a profiling configuration. On the Profiling page for the configuration, select theThe following table describes the options you can select for the Method and Line Code Coverage profiling type:
Option | Description | Default |
---|---|---|
Count mode activated | If selected, allows you to collect data not only about whether a method or class is covered, but about the number of times it has been exercised. | Off |
Flush coverage data when any of the following methods run: | If selected, allows you to specify when to flush coverage data to a profiling resource. Flushes are performed automatically, but if the Annotated Source and Coverage Monitor views report No data available for display after you have collected line and method coverage data, trigger an additional flush. To do this, select this check box, and then click Add to specify the triggering methods in the Method Event and Pattern Editor window. | Off |
The Edit and Remove push buttons are enabled when you select one of the currently displayed methods and patterns. Use them to edit the method or pattern specification in the Method Event and Pattern Editor window or to remove one of the methods and patterns.