The name of the file corresponding to a source file is formed simply by changing
file suffix to .da
, e.g. for test.c
the corresponding file is
test.da
.
As mentioned before, the file consists of several sections, each represening
single run. The structure of each section is shown on figure
The function name in the figure is stored as a (4 bytes), the length (4 bytes),
the name itself (padded to 4-byte boundary) followed by a
(4 bytes).
The extension block is used for storage of other important data which may be emited by future versions of gcc. This allows use of particular profile with different versions of gcc.
In current version, extension block contains the following information:
The content of the file can be examined by utility gcov
, which outputs
the corresponding source file together with execution counts for each line
(so-called line coverage).
There is currently no utility for manipulating the profile output file structure,
e.g. removing runs or merging two files together.
Jan Hubicka 2003-05-04