internal static void IncrementCounterEx(AppPerfCounter counter, int delta) { if (_instance != null) { UnsafeNativeMethods.PerfIncrementCounterEx(_instance.UnsafeHandle, (int)counter, delta); } }
internal /*public*/ static void IncrementGlobalCounterEx(GlobalPerfCounter counter, int delta) { if (GoingIn()) { try { UnsafeNativeMethods.PerfIncrementCounterEx(_global, (int)counter, delta); } finally { GoingOut(); } } }