diff options
author | Martin Liska <mliska@suse.cz> | 2019-03-11 12:48:49 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-03-11 11:48:49 +0000 |
commit | 52eba77915ed77da53928905a731840249cf45d5 (patch) | |
tree | 6e8653e59a9f286bdbd1b37d03682be267c93864 /gcc/doc/gcov.texi | |
parent | cb90c0014070f4ace5bb88258b31c1d654162306 (diff) | |
download | gcc-52eba77915ed77da53928905a731840249cf45d5.tar.gz |
Improve JSON format: add function names for lines.
2019-03-11 Martin Liska <mliska@suse.cz>
* gcov.c (output_intermediate_json_line): Print function
name of each line.
(output_json_intermediate_file): Add new argument.
* doc/gcov.texi: Document the change.
From-SVN: r269581
Diffstat (limited to 'gcc/doc/gcov.texi')
-rw-r--r-- | gcc/doc/gcov.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index eaac2f69409..0960e4acb26 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -276,6 +276,7 @@ Each @var{line} has the following form: "count": @var{count}, "line_number": @var{line_number}, "unexecuted_block": @var{unexecuted_block} + "function_name": @var{function_name}, @} @end smallexample @@ -294,6 +295,10 @@ Fields of the @var{line} element have following semantics: (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) + Each @var{branch} has the following form: @smallexample |