diff options
author | Mark Shannon <mark@hotpy.org> | 2021-08-04 11:39:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 11:39:52 +0100 |
commit | c83919bd635f4433f1c6ae8504996a9fe3c215e5 (patch) | |
tree | 820040d9928408060179d684adc4775f98df76d0 /Python/ceval.c | |
parent | ac811f9b5a68ce8756911ef2c8be83b46696018f (diff) | |
download | cpython-git-c83919bd635f4433f1c6ae8504996a9fe3c215e5.tar.gz |
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.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 4f7edb84fc..e3658b8138 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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); \ } |