diff options
author | Karl Williamson <khw@cpan.org> | 2022-05-12 15:32:48 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-12 15:35:42 -0600 |
commit | 179183d9c52368c316167428338846d035d0f3e4 (patch) | |
tree | 9de7ebadee9d16bd73ae6e9c915ac52cb4d46899 /malloc.c | |
parent | 991f482c23e11e1104a702f1b819b5311f921ee5 (diff) | |
download | perl-179183d9c52368c316167428338846d035d0f3e4.tar.gz |
perlapi: Document dump_mstats
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -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) { |