summaryrefslogtreecommitdiff
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-22 21:13:34 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-22 21:13:34 +0200
commit5f6213be2d5890d7bc3ba62db58ac1ce0215aaaa (patch)
treee818110e6015c9666cac9d1d3107ca656719811a /Objects/listobject.c
parentf7338f65fb8bdb85c52dc54d06d003a82a06bbb3 (diff)
parent49526f48fc73d3ccdf09d466ed2d39a30e4df9b9 (diff)
downloadcpython-git-5f6213be2d5890d7bc3ba62db58ac1ce0215aaaa.tar.gz
Merge
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index e59c9b1b63..6e0d094154 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -117,6 +117,15 @@ PyList_Fini(void)
PyList_ClearFreeList();
}
+/* Print summary info about the state of the optimized allocator */
+void
+_PyList_DebugMallocStats(FILE *out)
+{
+ _PyDebugAllocatorStats(out,
+ "free PyListObject",
+ numfree, sizeof(PyListObject));
+}
+
PyObject *
PyList_New(Py_ssize_t size)
{