Oracle® Solaris Studio 12.4: Code Analyzer User's Guide

Exit Print View

Updated: October 2014
 
 

Collecting Code Coverage Data

Collecting code coverage data on your C or C++ program is a three-step process:

  1. Instrumenting the binary with uncover

  2. Running the instrumented binary

  3. Running uncover again to generate a coverage report for use by Code Analyzer.

You can run the instrumented binary multiple times after instrumenting it, and accumulate data over all of the runs before generating the coverage report.