summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-07-29 16:26:53 (GMT)
committerGitHub <noreply@github.com>2021-07-29 16:26:53 (GMT)
commitddd1c418c05da0de978c75dfb3e4a5b8d27e1d9f (patch)
treee43ba73ffc54a4e7a5d96c808592e43d40c45a5b /Lib/opcode.py
parent6741794dd420c6b9775a188690dbf265037cd69f (diff)
downloadcpython-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.py10
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",
+]