aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/gcov.texi
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-06-09 07:35:48 +0200
committerMartin Liska <mliska@suse.cz>2021-06-09 07:35:48 +0200
commitc7768f068398b267756b767f7d2f4d06d1292a8e (patch)
tree2d1762e122686e13cd0cc5e9ad6c372d08a8550f /gcc/doc/gcov.texi
parent8451c23d2872e99371728bd9ccddec7661b11c63 (diff)
downloadgcc-c7768f068398b267756b767f7d2f4d06d1292a8e.zip
gcc-c7768f068398b267756b767f7d2f4d06d1292a8e.tar.gz
gcc-c7768f068398b267756b767f7d2f4d06d1292a8e.tar.bz2
Improve JSON code-blocks.
Diffstat (limited to 'gcc/doc/gcov.texi')
-rw-r--r--gcc/doc/gcov.texi50
1 files changed, 25 insertions, 25 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi
index e3f528e..3d90bf9 100644
--- a/gcc/doc/gcov.texi
+++ b/gcc/doc/gcov.texi
@@ -158,11 +158,11 @@ Structure of the JSON is following:
@smallexample
@{
- "current_working_directory": @var{current_working_directory},
- "data_file": @var{data_file},
- "format_version": @var{format_version},
- "gcc_version": @var{gcc_version}
- "files": [@var{file}]
+ "current_working_directory": "foo/bar",
+ "data_file": "a.out",
+ "format_version": "1",
+ "gcc_version": "11.1.1 20210510"
+ "files": ["$file"]
@}
@end smallexample
@@ -187,9 +187,9 @@ Each @var{file} has the following form:
@smallexample
@{
- "file": @var{file_name},
- "functions": [@var{function}],
- "lines": [@var{line}]
+ "file": "a.c",
+ "functions": ["$function"],
+ "lines": ["$line"]
@}
@end smallexample
@@ -204,15 +204,15 @@ Each @var{function} has the following form:
@smallexample
@{
- "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}
+ "blocks": 2,
+ "blocks_executed": 2,
+ "demangled_name": "foo",
+ "end_column": 1,
+ "end_line": 4,
+ "execution_count": 1,
+ "name": "foo",
+ "start_column": 5,
+ "start_line": 1
@}
@end smallexample
@@ -256,11 +256,11 @@ Each @var{line} has the following form:
@smallexample
@{
- "branches": [@var{branch}],
- "count": @var{count},
- "line_number": @var{line_number},
- "unexecuted_block": @var{unexecuted_block}
- "function_name": @var{function_name},
+ "branches": ["$branch"],
+ "count": 2,
+ "line_number": 15,
+ "unexecuted_block": false,
+ "function_name": "foo",
@}
@end smallexample
@@ -287,9 +287,9 @@ Each @var{branch} has the following form:
@smallexample
@{
- "count": @var{count},
- "fallthrough": @var{fallthrough},
- "throw": @var{throw}
+ "count": 11,
+ "fallthrough": true,
+ "throw": false
@}
@end smallexample