2. Sun Memory Error Discovery Tool (Discover)
3. Code Coverage Tool (Uncover)
Requirements for Using Uncover
Running the Instrumented Binary
Generating and Viewing the Coverage Report
Understanding the Coverage Report in the Performance Analyzer
Understanding the ASCII Coverage Report
Uncover can instrument only code that has been prepared as described in Requirements for Using Uncover. Non-annotated code might come from assembly language code linked into the binary, or from modules compiled with older compilers or operating systems than those listed in that section.
Specifically excluded from preparation are assembly language modules and functions that contain asm statements or .il templates.
Uncover operates on machine code. It finds coverage of machine instructions and then correlates this coverage with source code. Some source code statements do not have associated machine instructions, so Uncover might appear to not report coverage for such statements. For example, consider the following code fragment:
#define A 100 #define B 200 ... if (A>B) { ... }
You might expect Uncover to report a non-zero execution count for the if statement, but the compiler is likely to remove this code, so Uncover will not see it during instrumentation. So no coverage will be reported for these instructions.