diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-15 17:18:12 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-15 17:18:12 +0000 |
commit | 827e134a90c4e2814fe47bdf310ed7e78fd7f61c (patch) | |
tree | 30e9d8c3f1dc43fa6c586a0bcde2a353f946e92f /perl.h | |
parent | 56d7751aa4c2e1e56296cbd71ecc38fb6fe74276 (diff) | |
download | perl-827e134a90c4e2814fe47bdf310ed7e78fd7f61c.tar.gz |
provide malloc stats via get_mstats() (from Ilya Zakharevich)
p4raw-id: //depot/perl@5103
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -529,6 +529,19 @@ Malloc_t Perl_realloc (Malloc_t where, MEM_SIZE nbytes); * that causes clashes with case-insensitive linkers */ Free_t Perl_mfree (Malloc_t where); +typedef struct perl_mstats perl_mstats_t; + +struct perl_mstats { + unsigned long *nfree; + unsigned long *ntotal; + long topbucket, topbucket_ev, topbucket_odd, totfree, total, total_chain; + long total_sbrk, sbrks, sbrk_good, sbrk_slack, start_slack, sbrked_remains; + long minbucket; + /* Level 1 info */ + unsigned long *bucket_mem_size; + unsigned long *bucket_available_size; +}; + # define safemalloc Perl_malloc # define safecalloc Perl_calloc # define saferealloc Perl_realloc |