summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2023-04-13 18:40:08 -0400
committerMarek Olšák <marek.olsak@amd.com>2023-05-14 22:39:13 -0400
commit5d9f1f0c7c8b56b14c887d861028906283e8f47d (patch)
tree6d9fd49af115c52f5a8788150a8023bfd872f08f
parente06ff745bb45f8b603d310d09e481e0682137071 (diff)
si-report.py: don't print unaffected apps in the last table
-rwxr-xr-xsi-report.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/si-report.py b/si-report.py
index 241d2a5..65e8abb 100755
--- a/si-report.py
+++ b/si-report.py
@@ -482,6 +482,9 @@ class grouped_stats:
name))
def print_percentages_end(self, name, align, legend):
+ if not is_different(self.before, self.after):
+ return
+
print("| {:{app_width}} |{:{shader_width}}|{}|{}|{}|{}|{}|{}|{}|{}|{}|{}|".format(
name,
self.num_shaders,
@@ -678,8 +681,8 @@ def print_tables(before_all_results, after_all_results):
print
# percentages
- longest_app_name = max(longest_app_name, len("PERCENTAGE DELTAS"))
- title = "| {:^{width}} |".format("PERCENTAGE DELTAS", width=longest_app_name)
+ longest_app_name = max(longest_app_name, len("AFFECTED APPS"))
+ title = "| {:^{width}} |".format("AFFECTED APPS", width=longest_app_name)
legend = ["{:>9} ".format(s) for s in ["Shaders", "SGPRs", "VGPRs", "SpillSGPR", "SpillVGPR", "PrivVGPR", "Scratch", "CodeSize", "MaxWaves", "Outputs", "PatchOuts"]]
header = title + "|".join(legend) + "|"
print_yellow(header)
@@ -687,7 +690,7 @@ def print_tables(before_all_results, after_all_results):
for name, stats in sorted(apps.items()):
stats.print_percentages_end(name, longest_app_name, legend)
print("|".join(["-" * len(a) for a in (header).split("|")]))
- total_affected.print_percentages_end("All affected", longest_app_name, legend)
+ total_affected.print_percentages_end("All affected shaders", longest_app_name, legend)
print("|".join(["-" * len(a) for a in (header).split("|")]))
total.print_percentages_end("Total", longest_app_name, legend)
print