summaryrefslogtreecommitdiffstats
path: root/Include/cpython/pystats.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-12-12 21:43:08 (GMT)
committerGitHub <noreply@github.com>2023-12-12 21:43:08 (GMT)
commit7316dfb0ebc46aedf484c1f15f03a0a309d12a42 (patch)
tree92f0fb1befd424b1235b61e9d0d0e1d0389c190b /Include/cpython/pystats.h
parentdfaa9e060bf6d69cb862a2ac140b8fccbebf3000 (diff)
downloadcpython-7316dfb0ebc46aedf484c1f15f03a0a309d12a42.zip
cpython-7316dfb0ebc46aedf484c1f15f03a0a309d12a42.tar.gz
cpython-7316dfb0ebc46aedf484c1f15f03a0a309d12a42.tar.bz2
gh-112320: Implement on-trace confidence tracking for branches (#112321)
We track the confidence as a scaled int.
Diffstat (limited to 'Include/cpython/pystats.h')
-rw-r--r--Include/cpython/pystats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/pystats.h b/Include/cpython/pystats.h
index 294bf15..ba67eef 100644
--- a/Include/cpython/pystats.h
+++ b/Include/cpython/pystats.h
@@ -114,6 +114,7 @@ typedef struct _optimization_stats {
uint64_t trace_too_short;
uint64_t inner_loop;
uint64_t recursive_call;
+ uint64_t low_confidence;
UOpStats opcode[512];
uint64_t unsupported_opcode[256];
uint64_t trace_length_hist[_Py_UOP_HIST_SIZE];