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:
- Windows: Win32::Process::Memory
- Linux(and maybe Mac OSX): Linux::Smaps
Node
2009-03-10 07:13:57
+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
2009-03-10 07:15:23