22.12. Win32::PerfLibThe Win32::PerfLib module allows you to retrieve the performance counter of any computer running Windows NT in the network. All of the functions return false if they fail, unless otherwise noted. If the $server argument is undef, the local machine is assumed.
$perflib->new($server) Creates a connection to the performance counters of the given server.
$perflib->Close($hashref) Closes the connection to the performance counters.
GetCounterHelp($server, $hashref) Retrieves the counter help strings and their indices from the registry and stores them in the hash reference.
GetCounterNames($server, $hashref) Retrieves the counter names and their indices from the registry and stores them in the hash reference.
GetCounterType(countertype) Converts the counter type to a readable string.
$perflib->GetObjectList($objectid, $hashref) Retrieves the object and counter list of the given performance object. Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|