Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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.

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 lurking in the Monastery: (8)
As of 2016-10-01 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (577 votes). Check out past polls.