28 references to PerfCounter
System.Diagnostics.PerformanceCounter (28)
_generated\0\LibraryImports.g.cs (10)
808internal static partial uint PerfStartProvider(ref global::System.Guid ProviderGuid, global::Interop.PerfCounter.PERFLIBREQUEST ControlCallback, out global::Microsoft.Win32.SafeHandles.SafePerfProviderHandle phProvider) 857internal static unsafe partial global::Interop.PerfCounter.PerfCounterSetInstanceStruct* PerfCreateInstance(global::Microsoft.Win32.SafeHandles.SafePerfProviderHandle hProvider, ref global::System.Guid CounterSetGuid, string szInstanceName, uint dwInstance) 861global::Interop.PerfCounter.PerfCounterSetInstanceStruct* __retVal = default; 889static extern unsafe global::Interop.PerfCounter.PerfCounterSetInstanceStruct* __PInvoke(nint __hProvider_native, global::System.Guid* __CounterSetGuid_native, ushort* __szInstanceName_native, uint __dwInstance_native); 899internal static unsafe partial uint PerfSetCounterSetInfo(global::Microsoft.Win32.SafeHandles.SafePerfProviderHandle hProvider, global::Interop.PerfCounter.PerfCounterSetInfoStruct* pTemplate, uint dwTemplateSize) 924static extern unsafe uint __PInvoke(nint __hProvider_native, global::Interop.PerfCounter.PerfCounterSetInfoStruct* __pTemplate_native, uint __dwTemplateSize_native); 934internal static unsafe partial uint PerfDeleteInstance(global::Microsoft.Win32.SafeHandles.SafePerfProviderHandle hProvider, global::Interop.PerfCounter.PerfCounterSetInstanceStruct* InstanceBlock) 959static extern unsafe uint __PInvoke(nint __hProvider_native, global::Interop.PerfCounter.PerfCounterSetInstanceStruct* __InstanceBlock_native); 969internal static unsafe partial uint PerfSetCounterRefValue(global::Microsoft.Win32.SafeHandles.SafePerfProviderHandle hProvider, global::Interop.PerfCounter.PerfCounterSetInstanceStruct* pInstance, uint CounterId, void* lpAddr) 994static extern unsafe uint __PInvoke(nint __hProvider_native, global::Interop.PerfCounter.PerfCounterSetInstanceStruct* __pInstance_native, uint __CounterId_native, void* __lpAddr_native);
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafePerfProviderHandle.cs (1)
16uint Status = Interop.PerfCounter.PerfStopProvider(handle);
System\Diagnostics\PerformanceData\CounterSet.cs (11)
208uint CounterSetInfoSize = checked((uint)sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct) 209+ (uint)_idToCounter.Count * (uint)sizeof(Interop.PerfCounter.PerfCounterInfoStruct)); 214Debug.Assert(sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct) == 40); 215Debug.Assert(sizeof(Interop.PerfCounter.PerfCounterInfoStruct) == 32); 217Interop.PerfCounter.PerfCounterSetInfoStruct* CounterSetInfo; 218Interop.PerfCounter.PerfCounterInfoStruct* CounterInfo; 223CounterSetInfo = (Interop.PerfCounter.PerfCounterSetInfoStruct*)pCounterSetBuffer; 231CounterSetInfoUsed = (uint)sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct) 232+ (uint)CurrentCounter * (uint)sizeof(Interop.PerfCounter.PerfCounterInfoStruct); 235CounterInfo = (Interop.PerfCounter.PerfCounterInfoStruct*)(pCounterSetBuffer + CounterSetInfoUsed); 248Status = Interop.PerfCounter.PerfSetCounterSetInfo(_provider._hProvider, CounterSetInfo, CounterSetInfoSize);
System\Diagnostics\PerformanceData\CounterSetInstance.cs (4)
18internal unsafe Interop.PerfCounter.PerfCounterSetInstanceStruct* _nativeInst; 33Debug.Assert(sizeof(Interop.PerfCounter.PerfCounterSetInstanceStruct) == 32); 35_nativeInst = Interop.PerfCounter.PerfCreateInstance( 104Interop.PerfCounter.PerfDeleteInstance(_counterSet._provider._hProvider, _nativeInst);
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
141uint Status = Interop.PerfCounter.PerfSetCounterRefValue(
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
20uint Status = Interop.PerfCounter.PerfStartProvider(ref _providerGuid, null, out _hProvider);