does anyone know how to use performance counters.

this is wat i have. i have to show the processor usage information.

Dim perfCounter As New System.Diagnostics.PerformanceCounter

perfCounter.CategoryName = "Processor"
perfCounter.CounterName = "% Processor Time"
perfCounter.InstanceName = "_Total"

Debug.WriteLine(perfCounter.RawValue.ToString)