![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Tracking memory of a running applicationby DrWhy (Chaplain) |
on Oct 24, 2005 at 15:13 UTC ( #502486=perlquestion: print w/replies, xml ) | Need Help?? |
DrWhy has asked for the wisdom of the Perl Monks concerning the following question:
Esteemed monks,
I'm trying to write a test script on Windows (XP/2003 Server) that will, among other things, track the memory usage of the appliation. I know that I can do this with an external tool like pslist from SysInternals, but would rather not have to drive an external utility and then parse it's output. Do any of you know of a module or some other way in Perl to do this? I've searched here and in CPAN but haven't found anything, unless maypbe Win32::Process::Info would do it, but that is not clear from it's documentation. update: I thought I had made this clear originally, but upon seeing some of the responses and then re-reading my OP I see I left out a crucial piece of information: I'm tracking the memory used by an external c++ application that the Perl script spawns. So e.g., Devel::Size isn't going to do anything for me here. Sorry for the confusion. --DrWhy "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
Back to
Seekers of Perl Wisdom
|
|