Add specialization stats for FOR_ITER. (GH-31079)

This commit is contained in:
Mark Shannon 2022-02-02 15:56:47 +00:00 committed by GitHub
parent f66c857572
commit 0d05da1fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 74 additions and 1 deletions

View file

@ -26,7 +26,7 @@ for name in opcode.opname[1:]:
TOTAL = "specialization.deferred", "specialization.hit", "specialization.miss", "execution_count"
def print_specialization_stats(name, family_stats):
if "specialization.deferred" not in family_stats:
if "specialization.failure" not in family_stats:
return
total = sum(family_stats.get(kind, 0) for kind in TOTAL)
if total == 0: