Code Profiling Utilities Manual
Running the Code Cover Utility
HP Code Profiling Utilities Manual—542684-003
7-7
codecov Use of Standard Error and Output Files
also have uppercase names with the extension .HTML. Any existing files of the same
names are overwritten.
Among the HTML files that codecov creates are some that correspond to individual
source files.
Hyperlinks among the files within the CodeCoverage folder use simple pathnames.
The top-level file, CODE_COVERAGE.HTML, uses hyperlinks to point to these other
files. The hyperlinks have the format
This convention makes it easy to move the entire set of files to another location,
placing the top-level file in one directory or folder, and the other files in a subdirectory
or subfolder named Code_Coverage. Windows, OSS, and UNIX all support this
naming convention.
codecov Use of Standard Error and Output Files
The codecov utility sends all its output--messages, help syntax, password prompts,
and so on--to the standard output file (stdout), except that it writes two banner lines to
the standard error file (stderr). The banner consists of one line that displays the name
and VPROC of the tool, and a second line stating the copyright.
When codecov processes the command line, it detects an error if an option requires a
parameter of a certain form and the parameter is invalid. The utility also detects an
error if an option that requires a parameter is the last token on the command line. In
such cases, codecov emits an error message and terminates.
If you specify an option that codecov does not recognize, codecov ignores the option
and continues processing the command. Therefore, if results are different from what
you expect, check your command line for typographical errors.
If you specify the same option several times, with different parameters, the last
instance on the command line supersedes earlier instances.
Example
See Measure Code Coverage on page 9-11.
WARNING. The relation between source file names and HTML file names is not guaranteed to
be the same in future versions of this product.
Code_Coverage/
filename
.HTML
Note. Observe that codecov uses the standard output file for status messages, whereas
profmrg uses the standard error file.










