views:

393

answers:

2

I have a long running Perl script and I'd like to let it know (and report) how much memory it is using. I'd like to have this information both on Linux and Windows and if possible on Mac OS X as well.

+5  A: 

These Perl modules could help you:

Node
+4  A: 

This will show you how:

http://perldoc.perl.org/Devel/Peek.html

Also, http://perldoc.perl.org/perlguts.html

and, man pages for perldebug and perldebguts.

Chris