summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-12 15:32:48 -0600
committerKarl Williamson <khw@cpan.org>2022-05-12 15:35:42 -0600
commit179183d9c52368c316167428338846d035d0f3e4 (patch)
tree9de7ebadee9d16bd73ae6e9c915ac52cb4d46899 /malloc.c
parent991f482c23e11e1104a702f1b819b5311f921ee5 (diff)
downloadperl-179183d9c52368c316167428338846d035d0f3e4.tar.gz
perlapi: Document dump_mstats
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/malloc.c b/malloc.c
index 7016cf4c44..fe90996096 100644
--- a/malloc.c
+++ b/malloc.c
@@ -2221,13 +2221,21 @@ Perl_get_mstats(pTHX_ perl_mstats_t *buf, int buflen, int level)
#endif /* defined DEBUGGING_MSTATS */
return 0; /* XXX unused */
}
+
/*
- * mstats - print out statistics about malloc
- *
- * Prints two lines of numbers, one showing the length of the free list
- * for each size category, the second showing the number of mallocs -
- * frees for each size category.
- */
+=for apidoc dump_mstats
+
+When enabled by compiling with C<-DDEBUGGING_MSTATS>, print out statistics
+about malloc as two lines of numbers, one showing the length of the free list
+for each size category, the second showing the number of S<mallocs - frees> for
+each size category.
+
+C<s>, if not NULL, is used as a phrase to include in the output, such as
+S<"after compilation">.
+
+=cut
+*/
+
void
Perl_dump_mstats(pTHX_ const char *s)
{