diff options
author | Marek Olšák <marek.olsak@amd.com> | 2023-04-13 18:14:42 -0400 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2023-05-14 22:39:13 -0400 |
commit | 2de3da1c4e5b5507111f1521e64e90ef5cb92744 (patch) | |
tree | 4e354e86b7157cf559aff49cc6e8bf0e8c8786b2 | |
parent | d9e94ac4bd67093c22e954888b41b6d8fa456fca (diff) |
si-report.py: match the style of totals to match the rest
also change the text
-rwxr-xr-x | si-report.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/si-report.py b/si-report.py index 2e63344..0bed55e 100755 --- a/si-report.py +++ b/si-report.py @@ -114,7 +114,7 @@ class si_stats: def to_string(self, suffixes = True): strings = [] for name, printname, suffix in si_stats.metrics: - string = "{}: {}".format(printname, get_str(self.__dict__[name])) + string = " {}: {}".format(printname, get_str(self.__dict__[name])) if suffixes and len(suffix) > 0: string += ' ' + suffix @@ -393,13 +393,9 @@ def compare_results(before_all_results, after_all_results): if have_error: errors_names.append(name) - print '{} shaders in {} tests'.format(num_shaders, num_tests) - if num_shaders == 0: - return - - print "Totals:" + print_yellow("TOTALS FROM ALL SHADERS ({}):".format(num_shaders)) print_before_after_stats(total_before, total_after) - print "Totals from affected shaders:" + print_yellow("TOTALS FROM AFFECTED SHADERS ({}/{})".format(num_affected, num_shaders)) print_before_after_stats(total_affected_before, total_affected_after) def report_ignored(names, what): |