mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -4447,6 +4447,11 @@ handle_eval_breaker:
|
|||
|
||||
call_shape.total_args = oparg;
|
||||
call_shape.kwnames = NULL;
|
||||
#ifdef Py_STATS
|
||||
extern int _PySpecialization_ClassifyCallable(PyObject *);
|
||||
_py_stats.opcode_stats[PRECALL_FUNCTION].specialization.failure++;
|
||||
_py_stats.opcode_stats[PRECALL_FUNCTION].specialization.failure_kinds[_PySpecialization_ClassifyCallable(call_shape.callable)]++;
|
||||
#endif
|
||||
DISPATCH();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue