diff options
author | Jeff Glass <glass.jeffrey@gmail.com> | 2024-04-16 13:27:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 13:27:18 (GMT) |
commit | acf69e09c66f8473399fabab36b81f56496528a6 (patch) | |
tree | cdf6f3ae8acc8a84115ff051525f779176aae665 /Python/ceval.c | |
parent | c053d52edd1e05ccc339e380b705749a3240d645 (diff) | |
download | cpython-acf69e09c66f8473399fabab36b81f56496528a6.zip cpython-acf69e09c66f8473399fabab36b81f56496528a6.tar.gz cpython-acf69e09c66f8473399fabab36b81f56496528a6.tar.bz2 |
gh-115178: Add Counts of UOp Pairs to pystats (GH-115181)
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 f718a77..c0783f7 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -995,6 +995,7 @@ enter_tier_two: ; // dummy statement after a label, before a declaration uint16_t uopcode; #ifdef Py_STATS + int lastuop = 0; uint64_t trace_uop_execution_counter = 0; #endif @@ -1018,6 +1019,7 @@ tier2_dispatch: next_uop++; OPT_STAT_INC(uops_executed); UOP_STAT_INC(uopcode, execution_count); + UOP_PAIR_INC(uopcode, lastuop); #ifdef Py_STATS trace_uop_execution_counter++; #endif |