In Python 3.10/3.11, the old DYNAMIC_EXECUTION_PROFILE and DXPAIRS macros were replaced with Py_STATS macro. The sys.getdxp() function is no longer used with Tools/scripts/analyze_dxp.py. Now if Python is built with ./configure --enable-pystats, statistics on opcodes are written into the /tmp/py_stats/ directory and these files can be analyzed with Tools/scripts/summarize_stats.py.
I propose to remove sys.getdxp() and Tools/scripts/analyze_dxp.py.
Activity
mdboom commented on Sep 30, 2022
Cc: @markshannon
gh-97670: Remove sys.getdxp() and analyze_dxp.py script (#97671)
vstinner commented on Oct 17, 2022
Fixed by 116fa62