performance counter and WMI

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hi!

I'm going a course to prepare for en MS exam.
We have been doing some exercises on performance counters and WMI(Windows
Management Instrumentation).

I just wonder how much use do I have of performance counters WMI when using
them programatically.

I assume that these things are used vary rarely. I can't find a single
example where I would used them.
Can anyone find an example where any of these could be suitable to be used ?
What is your experience of performance counter and WMI ?

//Tony
 
Tony Johansson said:
Hi!

I'm going a course to prepare for en MS exam.
We have been doing some exercises on performance counters and WMI(Windows
Management Instrumentation).

I just wonder how much use do I have of performance counters WMI when
using them programatically.

I assume that these things are used vary rarely. I can't find a single
example where I would used them.
Can anyone find an example where any of these could be suitable to be used
?
What is your experience of performance counter and WMI ?

Here are a few articles that will describe how to use them and what for.
http://www.codeproject.com/info/search.aspx?artkw=Performance+counters&sbo=kw
I only ever used them when I was trying to learn a bit about them. Never
since.

mick
 
Tony said:
Hi!

I'm going a course to prepare for en MS exam.
We have been doing some exercises on performance counters and WMI(Windows
Management Instrumentation).

I just wonder how much use do I have of performance counters WMI when using
them programatically.

WMI should provide full access to them. If you find a situation where
that's not true, it'd be worth reporting as a bug on the Connect web site.
I assume that these things are used vary rarely. I can't find a single
example where I would used them.

They don't come up often in normal programs. You use them implicitly in
some classes, like System.Diagnostics.Stopwatch. But the performance
counters are things that wind up being used for very specific needs;
they're not a broadly useful thing the way a lot of the rest of .NET is.

Pete
 
Back
Top