chiark / gitweb /
doxygen: debug output for long-running tasks.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 1 Jan 2019 23:23:45 +0000 (00:23 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 2 Jan 2019 21:07:11 +0000 (22:07 +0100)
doxygen/dox2html5.py

index c13036bef7a6b6d6f70bcf3a083da47b7286ff19..83c43867661aef237e988c2317e9f48d47df6380 100755 (executable)
@@ -3459,6 +3459,8 @@ def run(doxyfile, templates=default_templates, wildcard=default_wildcard, index_
     # there's at least some entrypoint. Doxygen version is not set in this
     # case, as this is totally without Doxygen involvement.
     if not os.path.join(xml_input, 'indexpage.xml') in xml_files_metadata:
+        logging.debug("writing index.html for an empty mainpage")
+
         compound = Empty()
         compound.kind = 'page'
         compound.name = state.doxyfile['PROJECT_NAME']
@@ -3479,6 +3481,8 @@ def run(doxyfile, templates=default_templates, wildcard=default_wildcard, index_
             f.write(b'\n')
 
     if not state.doxyfile['M_SEARCH_DISABLED']:
+        logging.debug("building search data for {} symbols".format(len(state.search)))
+
         data = build_search_data(state, add_lookahead_barriers=search_add_lookahead_barriers, merge_subtrees=search_merge_subtrees, merge_prefixes=search_merge_prefixes)
 
         if state.doxyfile['M_SEARCH_DOWNLOAD_BINARY']:
@@ -3531,6 +3535,7 @@ if __name__ == '__main__': # pragma: no cover
     doxyfile = os.path.abspath(args.doxyfile)
 
     if not args.no_doxygen:
+        logging.debug("running Doxygen on {}".format(args.doxyfile))
         subprocess.run(["doxygen", doxyfile], cwd=os.path.dirname(doxyfile))
 
     run(doxyfile, os.path.abspath(args.templates), args.wildcard, args.index_pages, search_merge_subtrees=not args.search_no_subtree_merging, search_add_lookahead_barriers=not args.search_no_lookahead_barriers, search_merge_prefixes=not args.search_no_prefix_merging)