Code Coverage Tool Reference Manual

HP Code Coverage Tool Reference Manual for HP Integrity NonStop NS-Series Servers542684-004
5-1
5
Converting Raw Data Files to DPI
Files
Task Overview
In this step, you combine the raw data files from application runs to produce a
dynamic profiling information (DPI) file for input to the codecov utility. If you have
previously measured code coverage for the same application, you can combine the
DPI files from the previous runs with raw data files from the latest run to produce a new
DPI file.
To perform this task, you use the profmrg utility, which runs on a Windows workstation.
Prepare profmrg Input Files
The profmrg utility requires the following inputs:
Zero or more raw data files, generated by runs of instrumented code
Zero or more DPI files, created by previous runs of profmrg
The output of profmrg is a DPI file that combines the information from all the input files.
Although you normally use profmrg to combine new data and produce a new DPI file, it
can sometimes make sense to run profmrg with no input raw data files and no DPI
files, other than an existing DPI file that is also the output file. For example, the -dump
option, described in Run profmrg, produces a text dump of the input files.
If you are running profmrg solely to update or dump an existing DPI file, you need not
provide any other input.
Figure 5-1. Using profmrg to Combine Raw Data Files
vst005.vsd
Raw Data Files
Old DPI Files
profmrg
New DPI
File