Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Access Win "performance counter" from unix?

by BrowserUk (Pope)
on Aug 02, 2003 at 23:35 UTC ( #280360=note: print w/ replies, xml ) Need Help??


in reply to Access Win "performance counter" from unix?

I'm not aware of any tools/modules for accessing Win32 performance data from a *nix machine, but then I wouldn't be:)

However, if such a tools exists, it might be available as a part of the WINE project. I did take a quick peruse, but the search options don't seem to work for me... maybe it didn't like my browser?

The Win32 PerfMon.exe can (with appropriate permissions) connect and display performance data gathered from other Win32 machines, so at least there is a remote access protocol available that could be (theoretically) connected to. This relies upon MS authentication and transport protocols (RAS/WMI). Whether WINE has succeeded in emulating these I don't know.

If you decide that you need to go the route of writing your own server, then I'd recommend Win32::Process::Info as a starting point. It provides access to the same information as Win32::PerfMon, but the interface is considerably easier to use, as the author has abstracted the (horrible!) native apis in a perl freindly manner taking care of a huge amount of nasty detail that you would have to do yourself using PerfMon.

If you have to go this route and would like a hand...


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.


Comment on Re: Access Win "performance counter" from unix?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-07-13 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (248 votes), past polls