summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-02-22 17:18:10 (GMT)
committerGitHub <noreply@github.com>2022-02-22 17:18:10 (GMT)
commit09487c11a582be1f20d34319a82cfaf72d5c27a5 (patch)
treeb7f5c29f55707a439ed01cb591e3c2e261d346b4 /Tools
parent77f31a91d55df2df79ac767690738081f27ad476 (diff)
downloadcpython-09487c11a582be1f20d34319a82cfaf72d5c27a5.zip
cpython-09487c11a582be1f20d34319a82cfaf72d5c27a5.tar.gz
cpython-09487c11a582be1f20d34319a82cfaf72d5c27a5.tar.bz2
Fix reporting of specialization stats. (GH-31503)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/summarize_stats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py
index df20959..69babfd 100644
--- a/Tools/scripts/summarize_stats.py
+++ b/Tools/scripts/summarize_stats.py
@@ -38,7 +38,7 @@ def print_specialization_stats(name, family_stats, defines):
for key in sorted(family_stats):
if key.startswith("specialization.failure_kinds"):
continue
- if key.startswith("specialization."):
+ if key in ("specialization.hit", "specialization.miss"):
label = key[len("specialization."):]
elif key == "execution_count":
label = "unquickened"