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