Why won't my performance counters change?
问题 I must be doing something very wrong here. I create a custom performance counter as follows: string counterCategory = "Test Category"; string counterName = "Test Counter"; if (!PerformanceCounterCategory.Exists(counterCategory)) { Console.WriteLine("Creating Counters"); CounterCreationDataCollection counterCreationDataCollection = new CounterCreationDataCollection(); counterCreationDataCollection.Add( new CounterCreationData(counterName, "Description", PerformanceCounterType.NumberOfItems32)