mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add stats for PRECALL_FUNCTION. (GH-31250)
This commit is contained in:
parent
cfc1cecd7b
commit
b0662ae5c8
3 changed files with 36 additions and 3 deletions
|
@ -114,6 +114,8 @@ def kind_to_text(kind, defines, opname):
|
|||
opname = "ATTR"
|
||||
if opname.endswith("SUBSCR"):
|
||||
opname = "SUBSCR"
|
||||
if opname.startswith("PRECALL"):
|
||||
opname = "CALL"
|
||||
for name in defines[kind]:
|
||||
if name.startswith(opname):
|
||||
return pretty(name[len(opname)+1:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue