mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Add option to write specialization stats to files and script to summarize. (GH-27575)
* Add option to write stats to random file in a directory. * Add script to summarize stats.
This commit is contained in:
parent
ac811f9b5a
commit
c83919bd63
4 changed files with 75 additions and 12 deletions
|
@ -4408,6 +4408,7 @@ opname ## _miss: \
|
|||
cache_backoff(cache); \
|
||||
} \
|
||||
oparg = cache->original_oparg; \
|
||||
STAT_DEC(opname, unquickened); \
|
||||
JUMP_TO_INSTRUCTION(opname); \
|
||||
}
|
||||
|
||||
|
@ -4423,6 +4424,7 @@ opname ## _miss: \
|
|||
next_instr[-1] = _Py_MAKECODEUNIT(opname ## _ADAPTIVE, oparg); \
|
||||
STAT_INC(opname, deopt); \
|
||||
} \
|
||||
STAT_DEC(opname, unquickened); \
|
||||
JUMP_TO_INSTRUCTION(opname); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue