Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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.


Comment on Re: How to Monitor System Resources
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://719572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-12-23 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls