@@ -192,6 +192,7 @@ 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}]
@@ -205,6 +206,9 @@ Fields of the root element have following semantics:
@var{current_working_directory}: working directory where
a compilation unit was compiled
+@item
+@var{data_file}: name of the data file (GCDA)
+
@item
@var{format_version}: semantic version of the format
@@ -1421,6 +1421,7 @@ generate_results (const char *file_name)
if (bbg_cwd != NULL)
root->set ("current_working_directory", new json::string (bbg_cwd));
+ root->set ("data_file", new json::string (file_name));
json::array *json_files = new json::array ();
root->set ("files", json_files);