in reply to Win32::PerfMon get no instances or objects name

Hi Solli,

Can you please post some code that demonstrates your problem?

-Jim

  • Comment on Re: Win32::PerfMon get no instances or objects name

Replies are listed 'Best First'.
Re^2: Win32::PerfMon get no instances or objects name
by shonorio (Hermit) on Mar 15, 2005 at 11:27 UTC
    Sory, forgot to post the code, but as you can see there are nothing special.

    I have the same behavior on Windows XP/2000/2003.

    use Win32::PerfMon; my $PerfObj = Win32::PerfMon->new("."); my $Objects = $PerfObj->ListObjects(); foreach $Object (@$Objects) { print "$Object\n"; my $Counters = $PerfObj->ListCounters($Object); my $Instances = $PerfObj->ListInstances($Object); foreach $Counter (@$Counters) { print "\t[Counter]$Counter\n"; } foreach $Instance (@$Instances) { print "\t[Instance]$Instance\n"; } }
    Solli Moreira Honorio
    Sao Paulo - Brazil