diff options
author | Mark Shannon <mark@hotpy.org> | 2022-02-14 10:01:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 10:01:31 (GMT) |
commit | 15ee55528e1cbc47ef7e9f64186393eee40a49d9 (patch) | |
tree | cd1522b304dc4a33fe403b364775a2d16875440c /Python/ceval.c | |
parent | 1d6ce67c29aa2166ef326952cb605b908fb4f987 (diff) | |
download | cpython-15ee55528e1cbc47ef7e9f64186393eee40a49d9.zip cpython-15ee55528e1cbc47ef7e9f64186393eee40a49d9.tar.gz cpython-15ee55528e1cbc47ef7e9f64186393eee40a49d9.tar.bz2 |
Include length in stats for UNPACK_SEQUENCE. (GH-31254)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 5eb9150..ad8b054 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2740,10 +2740,10 @@ handle_eval_breaker: PREDICTED(UNPACK_SEQUENCE); PyObject *seq = POP(), *item, **items; #ifdef Py_STATS - extern int _PySpecialization_ClassifySequence(PyObject *); + extern int _PySpecialization_ClassifySequence(PyObject *, int); _py_stats.opcode_stats[UNPACK_SEQUENCE].specialization.failure++; _py_stats.opcode_stats[UNPACK_SEQUENCE].specialization. - failure_kinds[_PySpecialization_ClassifySequence(seq)]++; + failure_kinds[_PySpecialization_ClassifySequence(seq, oparg)]++; #endif if (PyTuple_CheckExact(seq) && PyTuple_GET_SIZE(seq) == oparg) { |