Re: Problem in the Performance counter
From: Anand (anonymous_at_discussions.microsoft.com)
Date: 03/25/04
- Next message: Simon Sheffield: "Re: Problem in the Performance counter"
- Previous message: Eric: "Outil très intéressant : CLRProfiler"
- In reply to: Jerry Pisk: "Re: Problem in the Performance counter"
- Next in thread: Simon Sheffield: "Re: Problem in the Performance counter"
- Reply: Simon Sheffield: "Re: Problem in the Performance counter"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Simon Sheffield: "Re: Problem in the Performance counter"
- Previous message: Eric: "Outil très intéressant : CLRProfiler"
- In reply to: Jerry Pisk: "Re: Problem in the Performance counter"
- Next in thread: Simon Sheffield: "Re: Problem in the Performance counter"
- Reply: Simon Sheffield: "Re: Problem in the Performance counter"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|