GH-132554: Add stats for GET_ITER (GH-132592)

* Add stats for GET_ITER

* Look for common iterable types, not iterator types

* Add stats for self iter and fix naming in summary
This commit is contained in:
Mark Shannon
2025-04-29 09:00:14 +01:00
committed by GitHub
parent 01f11a0e4e
commit 622300bdfa
6 changed files with 64 additions and 1 deletions

View File

@@ -288,7 +288,7 @@ class OpcodeStats:
opcode = "SUPER"
elif opcode.endswith("ATTR"):
opcode = "ATTR"
elif opcode in ("FOR_ITER", "SEND"):
elif opcode in ("FOR_ITER", "GET_ITER", "SEND"):
opcode = "ITER"
elif opcode.endswith("SUBSCR"):
opcode = "SUBSCR"