Re: Problem in the Performance counter

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Simon Sheffield (sisheffield_at_hotmail.com)
Date: 03/25/04


Date: Thu, 25 Mar 2004 17:04:32 +0100

You have a typo in the post below; you have got '_Toal' as the instance
where you mean '_Total'.
If you copy + pasted straight from code then that could be it...

Simon

"Anand" <anonymous@discussions.microsoft.com> wrote in message
news:6DE9C0DD-3C49-4044-A622-B02F14A3A627@microsoft.com...
> thanks jerry, But documentation did not help me. If you know more details
about it please let me know.
>
> Anand
>
> ----- Jerry Pisk wrote: -----
>
> You need to read the documentation. Some counters require two
readings to
> calculate the counter display value.
>
> Jerry
>
> "Anand" <anonymous@discussions.microsoft.com> wrote in message
> news:0734CFB3-A582-4C44-81A5-51FF4A5FE27B@microsoft.com...
> > PerformanceCounter processorUtiliz;
> > processorUtiliz = new PerformanceCounter("Processor","% Processor
> Time","_Toal");
> > string myValue = processorUtiliz.NextValue().ToString();
> >> In this the processorUtiliz.NextValue() is always giving me a
value 0.0.
> Could some body please help me why it is not giving the calulcated
value
> >> thanks
>
>
>



Relevant Pages

  • Re: Problem in the Performance counter
    ... thanks jerry, But documentation did not help me. ... Anand ... You need to read the documentation. ... calculate the counter display value. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Problem in the Performance counter
    ... >> thanks jerry, But documentation did not help me. ... >> calculate the counter display value. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: IIS Bin folder Hiding automatically
    ... But absolutely nothing about an ISAPI filter returning 404 to any requests ... Paul's reference is to an IIS documentation, not .Net, ... .Net 2.0 to include the new folders. ... Jerry ...
    (microsoft.public.inetserver.iis.security)
  • Re: PFINFO for 2003
    ... doesn't help, pfinfo still doesnt work. ... exchange 2000 version? ... documentation with it, ... > Hi Jerry, ...
    (microsoft.public.exchange.admin)
  • Re: Problem in the Performance counter
    ... Some counters require two readings to ... calculate the counter display value. ... Jerry ... > PerformanceCounter processorUtiliz; ...
    (microsoft.public.dotnet.framework.performance)