summaryrefslogtreecommitdiff
path: root/build-aux/measurestack/app_output.py
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/measurestack/app_output.py')
-rw-r--r--build-aux/measurestack/app_output.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/build-aux/measurestack/app_output.py b/build-aux/measurestack/app_output.py
index b220101..5336b85 100644
--- a/build-aux/measurestack/app_output.py
+++ b/build-aux/measurestack/app_output.py
@@ -20,6 +20,9 @@ def print_group(
grp_name: str,
) -> None:
grp = result.groups[grp_name]
+ if not grp.rows:
+ print(f"= {grp_name} (empty) =")
+ return
nsum = sum(v.nstatic * v.cnt for v in grp.rows.values())
nmax = max(v.nstatic for v in grp.rows.values())
@@ -130,8 +133,7 @@ def print_c(
print("*/")
print("")
print("/*")
- if result.groups["Extra"].rows:
- print_group(result, location_xform, "Extra")
+ print_group(result, location_xform, "Extra")
for funcname in sorted(result.included_funcs):
print(f"included: {location_xform(funcname)}")
print("*/")