summaryrefslogtreecommitdiffstats
path: root/Objects/methodobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2012-06-22 22:18:38 (GMT)
committerGuido van Rossum <guido@python.org>2012-06-22 22:18:38 (GMT)
commit8e0d25504c5a7309bdebda33b3aa9b8213896907 (patch)
treeb7b95aae5a041d01b70d3d26d7d3b1b853749af9 /Objects/methodobject.c
parent95c1c48fd6841230c6e8600b604e8460010ab399 (diff)
parent541b7c89ff179a945fb4f5745efc484df646a751 (diff)
downloadcpython-8e0d25504c5a7309bdebda33b3aa9b8213896907.zip
cpython-8e0d25504c5a7309bdebda33b3aa9b8213896907.tar.gz
cpython-8e0d25504c5a7309bdebda33b3aa9b8213896907.tar.bz2
Merge
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r--Objects/methodobject.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index c3a6409..1d143f9 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -338,6 +338,15 @@ PyCFunction_Fini(void)
(void)PyCFunction_ClearFreeList();
}
+/* Print summary info about the state of the optimized allocator */
+void
+_PyCFunction_DebugMallocStats(FILE *out)
+{
+ _PyDebugAllocatorStats(out,
+ "free PyCFunction",
+ numfree, sizeof(PyCFunction));
+}
+
/* PyCFunction_New() is now just a macro that calls PyCFunction_NewEx(),
but it's part of the API so we need to keep a function around that
existing C extensions can call.