summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-10-25 13:54:13 (GMT)
committerGitHub <noreply@github.com>2018-10-25 13:54:13 (GMT)
commit6279c1c5003cd94b5e04e568ce3df7c4e8f1eaa3 (patch)
tree69ba9fb9c2291b19241c700a4466c136c5aeda5b /Include/Python.h
parent9e00e80e213ebc37eff89ce72102c1f928ebc133 (diff)
downloadcpython-6279c1c5003cd94b5e04e568ce3df7c4e8f1eaa3.zip
cpython-6279c1c5003cd94b5e04e568ce3df7c4e8f1eaa3.tar.gz
cpython-6279c1c5003cd94b5e04e568ce3df7c4e8f1eaa3.tar.bz2
bpo-35053: Add Include/tracemalloc.h (GH-10091)
* Modify object.h to ensure that pymem.h is included, to get _Py_tracemalloc_config variable. * Move _PyTraceMalloc_XXX() functions to tracemalloc.h, they need PyObject type. Break circular dependency between pymem.h and object.h.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 1bac5bd..80200fe 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -137,5 +137,6 @@
#include "dtoa.h"
#include "fileutils.h"
#include "pyfpe.h"
+#include "tracemalloc.h"
#endif /* !Py_PYTHON_H */