Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public static IntPtr CreateCounterSetInstance(IntPtr counterSetHandle, string instanceName) { IntPtr counterSetInstanceHandle = IntPtr.Zero; #if !DotNetCoreClrLinux using (var pin = new PinCollection()) { Utility.WrapNativeSyncInvokeInMTA( () => { NativeCommon.FabricPerfCounterCreateCounterSetInstance(counterSetHandle, pin.AddBlittable(instanceName), out counterSetInstanceHandle); }, "PerformanceCountersInterop.CreateCounterSetInstance"); } #endif return(counterSetInstanceHandle); }