1 write to _counterSet
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceData\CounterSetInstance.cs (1)
30
_counterSet
= counterSetDefined;
19 references to _counterSet
System.Diagnostics.PerformanceCounter (19)
System\Diagnostics\PerformanceData\CounterSetInstance.cs (9)
36
_counterSet
._provider._hProvider, ref
_counterSet
._counterSet, _instName, 0);
52
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InstanceAlreadyExists, _instName,
_counterSet
._counterSet), nameof(instanceName));
55
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_CounterSetNotInstalled,
_counterSet
._counterSet));
58
if (
_counterSet
._instType == CounterSetInstanceType.Single)
60
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InvalidInstance,
_counterSet
._counterSet), nameof(instanceName));
100
lock (
_counterSet
)
102
if (
_counterSet
._provider != null)
104
Interop.PerfCounter.PerfDeleteInstance(
_counterSet
._provider._hProvider, _nativeInst);
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (10)
116
if (_instance.
_counterSet
._provider == null)
118
throw new ArgumentException(SR.Format(SR.Perflib_Argument_ProviderNotFound, _instance.
_counterSet
._providerGuid), "ProviderGuid");
120
if (_instance.
_counterSet
._provider._hProvider.IsInvalid)
122
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _instance.
_counterSet
._providerGuid));
125
_dataBlock = (byte*)Marshal.AllocHGlobal(_instance.
_counterSet
._idToCounter.Count * sizeof(long));
128
throw new InsufficientMemoryException(SR.Format(SR.Perflib_InsufficientMemory_InstanceCounterBlock, _instance.
_counterSet
._counterSet, _instance._instName));
133
foreach (KeyValuePair<int, CounterType> CounterDef in _instance.
_counterSet
._idToCounter)
142
_instance.
_counterSet
._provider._hProvider,
153
(uint)Interop.Errors.ERROR_NOT_FOUND => new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_CounterRefValue, _instance.
_counterSet
._counterSet, CounterDef.Key, _instance._instName)),
242
int CounterId = _instance.
_counterSet
._stringToId[counterName];