Re: Problem in the Performance counter

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

From: Anand (anonymous_at_discussions.microsoft.com)
Date: 03/25/04


Date: Thu, 25 Mar 2004 06:51:05 -0800

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
    ... If you copy + pasted straight from code then that could be it... ... > thanks jerry, But documentation did not help me. ... > 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)