[llvm] r326123 - opt-viewer: output index first
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 13:15:47 PST 2018
Author: anemet
Date: Mon Feb 26 13:15:47 2018
New Revision: 326123
URL: http://llvm.org/viewvc/llvm-project?rev=326123&view=rev
Log:
opt-viewer: output index first
One can start looking at the index while the pages are still generating
Modified:
llvm/trunk/tools/opt-viewer/opt-viewer.py
Modified: llvm/trunk/tools/opt-viewer/opt-viewer.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt-viewer/opt-viewer.py?rev=326123&r1=326122&r2=326123&view=diff
==============================================================================
--- llvm/trunk/tools/opt-viewer/opt-viewer.py (original)
+++ llvm/trunk/tools/opt-viewer/opt-viewer.py Mon Feb 26 13:15:47 2018
@@ -242,14 +242,8 @@ def generate_report(all_remarks,
else:
raise
- _render_file_bound = functools.partial(_render_file, source_dir, output_dir, context, no_highlight)
if should_print_progress:
- print('Rendering HTML files...')
- optpmap.pmap(_render_file_bound,
- file_remarks.items(),
- num_jobs,
- should_print_progress)
-
+ print('Rendering index page...')
if should_display_hotness:
sorted_remarks = sorted(optrecord.itervalues(all_remarks), key=lambda r: (r.Hotness, r.File, r.Line, r.Column, r.PassWithDiffPrefix, r.yaml_tag, r.Function), reverse=True)
else:
@@ -259,6 +253,14 @@ def generate_report(all_remarks,
shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)),
"style.css"), output_dir)
+ _render_file_bound = functools.partial(_render_file, source_dir, output_dir, context, no_highlight)
+ if should_print_progress:
+ print('Rendering HTML files...')
+ optpmap.pmap(_render_file_bound,
+ file_remarks.items(),
+ num_jobs,
+ should_print_progress)
+
def main():
parser = argparse.ArgumentParser(description=desc)
More information about the llvm-commits
mailing list