DrWhy has asked for the wisdom of the Perl Monks concerning the following question:
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..."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tracking memory of a running application
by BrowserUk (Patriarch) on Oct 24, 2005 at 16:01 UTC | |
by DrWhy (Chaplain) on Oct 24, 2005 at 20:14 UTC | |
by BrowserUk (Patriarch) on Oct 24, 2005 at 22:12 UTC | |
by DrWhy (Chaplain) on Oct 25, 2005 at 21:11 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2005 at 01:19 UTC | |
| |
Re: Tracking memory of a running application
by Elian (Parson) on Oct 24, 2005 at 22:27 UTC | |
by BrowserUk (Patriarch) on Oct 24, 2005 at 23:20 UTC | |
by Elian (Parson) on Oct 25, 2005 at 19:45 UTC |