mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
[opt-viewer] Sort entries with identical hotness by source line
We want entries that are close to each other in the source appear next to each other. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05f3b7323d
commit
40561164f5
@ -190,7 +190,7 @@ def generate_report(pmap, all_remarks, file_remarks, source_dir, output_dir, sho
|
||||
pmap(_render_file_bound, file_remarks.items())
|
||||
|
||||
if should_display_hotness:
|
||||
sorted_remarks = sorted(all_remarks.itervalues(), key=lambda r: (r.Hotness, r.__dict__), reverse=True)
|
||||
sorted_remarks = sorted(all_remarks.itervalues(), key=lambda r: (r.Hotness, r.File, r.Line, r.Column, r.__dict__), reverse=True)
|
||||
else:
|
||||
sorted_remarks = sorted(all_remarks.itervalues(), key=lambda r: (r.File, r.Line, r.Column, r.__dict__))
|
||||
IndexRenderer(args.output_dir).render(sorted_remarks)
|
||||
|
Loading…
x
Reference in New Issue
Block a user