diff options
author | Martin Liska <mliska@suse.cz> | 2019-03-14 10:33:54 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-03-14 09:33:54 +0000 |
commit | b81547179688b601af97fc2185489dbea1cd86b2 (patch) | |
tree | 3b014b7c0ae678b661a9596e5af81a9395664ec1 /gcc/doc/gcov.texi | |
parent | ea9d9d749c3203e9fb01267fabecad93b7f1c06c (diff) | |
download | gcc-b81547179688b601af97fc2185489dbea1cd86b2.zip gcc-b81547179688b601af97fc2185489dbea1cd86b2.tar.gz gcc-b81547179688b601af97fc2185489dbea1cd86b2.tar.bz2 |
GCOV: print {start,end}_column in JSON file and gcov-dump tool.
2019-03-14 Martin Liska <mliska@suse.cz>
* coverage.c (coverage_begin_function): Stream also
end_column.
* doc/gcov.texi: Document 2 new fields in JSON file. Improve
documentation about function declaration location.
* gcov-dump.c (tag_function): Print whole range
of function declaration.
* gcov.c (struct function_info): Add end_column field.
(function_info::function_info): Initialize it.
(output_json_intermediate_file): Output {start,end}_column
fields.
(read_graph_file): Read end_column.
From-SVN: r269678
Diffstat (limited to 'gcc/doc/gcov.texi')
-rw-r--r-- | gcc/doc/gcov.texi | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index 0960e4a..ecad5d1 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -236,9 +236,11 @@ Each @var{function} has the following form: "blocks": @var{blocks}, "blocks_executed": @var{blocks_executed}, "demangled_name": "@var{demangled_name}, + "end_column": @var{end_column}, "end_line": @var{end_line}, "execution_count": @var{execution_count}, "name": @var{name}, + "start_column": @var{start_column} "start_line": @var{start_line} @} @end smallexample @@ -256,6 +258,9 @@ Fields of the @var{function} element have following semantics: @var{demangled_name}: demangled name of the function @item +@var{end_column}: column in the source file where the function ends + +@item @var{end_line}: line in the source file where the function ends @item @@ -265,9 +270,17 @@ Fields of the @var{function} element have following semantics: @var{name}: name of the function @item +@var{start_column}: column in the source file where the function begins + +@item @var{start_line}: line in the source file where the function begins @end itemize +Note that line numbers and column numbers number from 1. In the current +implementation, @var{start_line} and @var{start_column} do not include +any template parameters and the leading return type but that +this is likely to be fixed in the future. + Each @var{line} has the following form: @smallexample @@ -293,11 +306,11 @@ Fields of the @var{line} element have following semantics: @item @var{unexecuted_block}: flag whether the line contains an unexecuted block (not all statements on the line are executed) -@end itemize @item @var{function_name}: a name of a function this @var{line} belongs to (for a line with an inlined statements can be not set) +@end itemize Each @var{branch} has the following form: |