Gcov Data Files - Red Hat ENTERPRISE LINUX 4 Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

gcov
Chapter 10.
--a Test Coverage Program
calls to that function, and remove or ignore the other. Unfortunately, it will not remove the coverage
counters for the unused function body. Hence when instrumented, all but one use of that function will
show zero counts.
If the function is inlined in several places, the block structure in each location might not be the same.
For instance, a condition might now be calculable at compile time in some instances. Because the
coverage of all the uses of the inline function will be shown for the same source lines, the line counts
themselves might seem inconsistent.
10.4. Brief description of
uses two files for profiling. The names of these files are derived from the original object file
gcov
by substituting the file suffix with either
directory as the object file, and contain data stored in a platform-independent format.
The
file is generated when the source file is compiled with the GCC
.gcno
option. It contains information to reconstruct the basic block graphs and assign source line numbers
to blocks.
The
file is generated when a program containing object files built with the GCC
.gcda
option is executed. A separate
-fprofile-arcs
with this option. It contains arc transition counts, and some summary information.
The full details of the file format is specified in
should be used to access the coverage files.
data files
gcov
, or
.gcno
.gcda
.gcda
gcov-io.h
. All of these files are placed in the same
file is created for each object file compiled
, and functions provided in that header file
281
-ftest-coverage

Advertisement

Table of Contents
loading

Table of Contents