diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/gcc~13/gcov-data-files.html | |
new repository
Diffstat (limited to 'devdocs/gcc~13/gcov-data-files.html')
| -rw-r--r-- | devdocs/gcc~13/gcov-data-files.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/gcc~13/gcov-data-files.html b/devdocs/gcc~13/gcov-data-files.html new file mode 100644 index 00000000..0f6c5665 --- /dev/null +++ b/devdocs/gcc~13/gcov-data-files.html @@ -0,0 +1,6 @@ +<div class="section-level-extent" id="Gcov-Data-Files"> <div class="nav-panel"> <p> Next: <a href="cross-profiling" accesskey="n" rel="next">Data File Relocation to Support Cross-Profiling</a>, Previous: <a href="gcov-and-optimization" accesskey="p" rel="prev">Using <code class="command">gcov</code> with GCC Optimization</a>, Up: <a href="gcov" accesskey="u" rel="up"><code class="command">gcov</code>—a Test Coverage Program</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="section" id="Brief-Description-of-gcov-Data-Files"><span>10.4 Brief Description of gcov Data Files<a class="copiable-link" href="#Brief-Description-of-gcov-Data-Files"> ¶</a></span></h1> <p><code class="command">gcov</code> uses two files for profiling. The names of these files are derived from the original <em class="emph">object</em> file by substituting the file suffix with either <samp class="file">.gcno</samp>, or <samp class="file">.gcda</samp>. The files contain coverage and profile data stored in a platform-independent format. The <samp class="file">.gcno</samp> files are placed in the same directory as the object file. By default, the <samp class="file">.gcda</samp> files are also stored in the same directory as the object file, but the GCC <samp class="option">-fprofile-dir</samp> option may be used to store the <samp class="file">.gcda</samp> files in a separate directory. </p> <p>The <samp class="file">.gcno</samp> notes file is generated when the source file is compiled with the GCC <samp class="option">-ftest-coverage</samp> option. It contains information to reconstruct the basic block graphs and assign source line numbers to blocks. </p> <p>The <samp class="file">.gcda</samp> count data file is generated when a program containing object files built with the GCC <samp class="option">-fprofile-arcs</samp> option is executed. A separate <samp class="file">.gcda</samp> file is created for each object file compiled with this option. It contains arc transition counts, value profile counts, and some summary information. </p> <p>It is not recommended to access the coverage files directly. Consumers should use the intermediate format that is provided by <code class="command">gcov</code> tool via <samp class="option">--json-format</samp> option. </p> </div><div class="_attribution"> + <p class="_attribution-p"> + © Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br> + <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Gcov-Data-Files.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Gcov-Data-Files.html</a> + </p> +</div> |
