diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-07-29 16:26:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 16:26:53 (GMT) |
commit | ddd1c418c05da0de978c75dfb3e4a5b8d27e1d9f (patch) | |
tree | e43ba73ffc54a4e7a5d96c808592e43d40c45a5b /Lib/opcode.py | |
parent | 6741794dd420c6b9775a188690dbf265037cd69f (diff) | |
download | cpython-ddd1c418c05da0de978c75dfb3e4a5b8d27e1d9f.zip cpython-ddd1c418c05da0de978c75dfb3e4a5b8d27e1d9f.tar.gz cpython-ddd1c418c05da0de978c75dfb3e4a5b8d27e1d9f.tar.bz2 |
bpo-44725 : expose specialization stats in python (GH-27192)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index 7ba1519..7735848 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -234,3 +234,13 @@ _specialized_instructions = [ "LOAD_GLOBAL_MODULE", "LOAD_GLOBAL_BUILTIN", ] + +_specialization_stats = [ + "specialization_success", + "specialization_failure", + "hit", + "deferred", + "miss", + "deopt", + "unquickened", +] |