summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-10-04 13:28:57 (GMT)
committerGitHub <noreply@github.com>2022-10-04 13:28:57 (GMT)
commit116fa62c6ee18e2b2ccf3697802034c0d13a16e8 (patch)
treefab3ca7446049af8e4b96a0d406f250f18f0303f /Python/sysmodule.c
parent6e533088290b909df324615df24286489603989f (diff)
downloadcpython-116fa62c6ee18e2b2ccf3697802034c0d13a16e8.zip
cpython-116fa62c6ee18e2b2ccf3697802034c0d13a16e8.tar.gz
cpython-116fa62c6ee18e2b2ccf3697802034c0d13a16e8.tar.bz2
gh-97670: Remove sys.getdxp() and analyze_dxp.py script (#97671)
Remove the sys.getdxp() function and the Tools/scripts/analyze_dxp.py script. DXP stands for "dynamic execution pairs". They were related to DYNAMIC_EXECUTION_PROFILE and DXPAIRS macros which have been removed in Python 3.11. Python can now be built with "./configure --enable-pystats" to gather statistics on Python opcodes.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 584a8be..1ecf6a2 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -2014,11 +2014,6 @@ sys__debugmallocstats_impl(PyObject *module)
extern PyObject *_Py_GetObjects(PyObject *, PyObject *);
#endif
-#ifdef Py_STATS
-/* Defined in ceval.c because it uses static globals in that file */
-extern PyObject *_Py_GetDXProfile(PyObject *, PyObject *);
-#endif
-
#ifdef __cplusplus
}
#endif
@@ -2217,9 +2212,6 @@ static PyMethodDef sys_methods[] = {
SYS_GETDEFAULTENCODING_METHODDEF
SYS_GETDLOPENFLAGS_METHODDEF
SYS_GETALLOCATEDBLOCKS_METHODDEF
-#ifdef Py_STATS
- {"getdxp", _Py_GetDXProfile, METH_VARARGS},
-#endif
SYS_GETFILESYSTEMENCODING_METHODDEF
SYS_GETFILESYSTEMENCODEERRORS_METHODDEF
SYS__GETQUICKENEDCOUNT_METHODDEF