As far as I know i need to instantiate the Performance Counter before I use it, like:my $key = 'Name';
# pseudo algorithm my $inst = new PerformanceCounter('CPU'); while(true){ $sample = $inst->get_next_sample(); print $sample->{'total'}; print $sample->{'idle'}; print $sample->{'system'}; print $sample->{'user'}; }
But i don't know how to do it using WMI. I think I'm forced to use other method, that doesn't use WMI. Any tips?
Tks
MGIn reply to Re^2: How to GET CPU values from WMI
by gulden
in thread How to GET CPU values from WMI
by gulden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |