Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: How to Monitor System Resources

by BrowserUk (Pope)
on Oct 25, 2008 at 22:29 UTC ( #719572=note: print w/replies, xml ) Need Help??

in reply to How to Monitor System Resources

It's not clear wether you mean total usage for your system, or just for your own application?

Either way, on windows you can get the information using for individual processes using Win32::Process::Info or for the system as a whole using Win32::API.

See google search for some code for both.

You would obviously have to conditionally combine these with a *nix solution by testing $^O. I unaware of a cross-platform solution for this.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://719572]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-06-18 22:18 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.