llvm.org GIT mirror llvm / 2625631
opt-viewer: output index first One can start looking at the index while the pages are still generating git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326123 91177308-0d34-0410-b5e6-96231b3b80d8 Adam Nemet 1 year, 5 months ago
1 changed file(s) with 11 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
241241 else:
242242 raise
243243
244 if should_print_progress:
245 print('Rendering index page...')
246 if should_display_hotness:
247 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)
248 else:
249 sorted_remarks = sorted(optrecord.itervalues(all_remarks), key=lambda r: (r.File, r.Line, r.Column, r.PassWithDiffPrefix, r.yaml_tag, r.Function))
250 IndexRenderer(output_dir, should_display_hotness, max_hottest_remarks_on_index).render(sorted_remarks)
251
252 shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)),
253 "style.css"), output_dir)
254
244255 _render_file_bound = functools.partial(_render_file, source_dir, output_dir, context, no_highlight)
245256 if should_print_progress:
246257 print('Rendering HTML files...')
248259 file_remarks.items(),
249260 num_jobs,
250261 should_print_progress)
251
252 if should_display_hotness:
253 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)
254 else:
255 sorted_remarks = sorted(optrecord.itervalues(all_remarks), key=lambda r: (r.File, r.Line, r.Column, r.PassWithDiffPrefix, r.yaml_tag, r.Function))
256 IndexRenderer(output_dir, should_display_hotness, max_hottest_remarks_on_index).render(sorted_remarks)
257
258 shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)),
259 "style.css"), output_dir)
260262
261263
262264 def main():