Re: Problem in the Performance counter
From: Simon Sheffield (sisheffield_at_hotmail.com)
Date: 03/25/04
- Next message: Novice: "Many concurrent users of site using XPathDocument and XslTransform objects efficiently?"
- Previous message: Anand: "Re: Problem in the Performance counter"
- In reply to: Anand: "Re: Problem in the Performance counter"
- Next in thread: Jerry Pisk: "Re: Problem in the Performance counter"
- Reply: Jerry Pisk: "Re: Problem in the Performance counter"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>
- Next message: Novice: "Many concurrent users of site using XPathDocument and XslTransform objects efficiently?"
- Previous message: Anand: "Re: Problem in the Performance counter"
- In reply to: Anand: "Re: Problem in the Performance counter"
- Next in thread: Jerry Pisk: "Re: Problem in the Performance counter"
- Reply: Jerry Pisk: "Re: Problem in the Performance counter"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|