Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Logging and Analysing Performance Counters in Windowsby ikegami (Patriarch) |
on Sep 07, 2004 at 21:00 UTC ( [id://389211]=note: print w/replies, xml ) | Need Help?? |
Windows has performance counters that can be used to track this, and even graph it. Head to Administrative Tools in the Control Panel and select Performance. you can see it charted in real time in System Monitor (right-click, Add Counter, ...) or log it using Counter Logs (right-click, New Log Settings, ...). I think there's a way to graph logs, but I didn't look for it since you wanted to use perl. When logging, you have the option of starting a new file and/or having a program automatically launched every X time units. You could use this to lauch a perl script to analyse the logs regularly. (Maybe it passes the log name as an arg?? Maybe only if you specify %1??). There a few file formats available (binary, CSV, TSV, binary circlular). Binary appears to be a list of packed timestamped samples preceeded with a header. You might be able to find some info on it if you search, or it should be pretty easy to deduce enough to use it. Or you could simply use CSV, which looks as follow:
(This should give a hint as to the fields in the bin format, btw)
In Section
Seekers of Perl Wisdom
|
|