in reply to
Determining the Memory Usage of a Perl program from within Perl
I think that
Devel::Peek
's
mstats
function will do it for you. The documentation on CPAN doesn't give much help, but there's a place to start.
Comment on
Re: Determining the Memory Usage of a Perl program from within Perl
Download
Code
In Section
Seekers of Perl Wisdom