1 write to m_counterSet
System.Core (1)
System\Diagnostics\PerformanceData\CounterSetInstance.cs (1)
42
m_counterSet
= counterSetDefined;
19 references to m_counterSet
System.Core (19)
System\Diagnostics\PerformanceData\CounterSetInstance.cs (9)
46
m_counterSet
.m_provider.m_hProvider, ref
m_counterSet
.m_counterSet, m_instName, 0);
59
throw new ArgumentException(SR.GetString(SR.Perflib_Argument_InstanceAlreadyExists, m_instName,
m_counterSet
.m_counterSet), "InstanceName");
62
throw new InvalidOperationException( SR.GetString(SR.Perflib_InvalidOperation_CounterSetNotInstalled,
m_counterSet
.m_counterSet));
65
if (
m_counterSet
.m_instType == CounterSetInstanceType.Single) {
66
throw new ArgumentException(SR.GetString(SR.Perflib_Argument_InvalidInstance,
m_counterSet
.m_counterSet), "InstanceName");
102
lock(
m_counterSet
) {
103
if (
m_counterSet
.m_provider != null) {
104
uint Status = UnsafeNativeMethods.PerfDeleteInstance(
m_counterSet
.m_provider.m_hProvider, m_nativeInst);
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (10)
118
if (m_instance.
m_counterSet
.m_provider == null) {
119
throw new ArgumentException(SR.GetString(SR.Perflib_Argument_ProviderNotFound, m_instance.
m_counterSet
.m_providerGuid), "ProviderGuid");
121
if (m_instance.
m_counterSet
.m_provider.m_hProvider.IsInvalid) {
122
throw new InvalidOperationException(SR.GetString(SR.Perflib_InvalidOperation_NoActiveProvider, m_instance.
m_counterSet
.m_providerGuid));
125
m_dataBlock = (byte *) Marshal.AllocHGlobal(m_instance.
m_counterSet
.m_idToCounter.Count * sizeof(Int64));
127
throw new InsufficientMemoryException(SR.GetString(SR.Perflib_InsufficientMemory_InstanceCounterBlock, m_instance.
m_counterSet
.m_counterSet, m_instance.m_instName));
132
foreach (KeyValuePair<Int32, CounterType> CounterDef in m_instance.
m_counterSet
.m_idToCounter) {
140
m_instance.
m_counterSet
.m_provider.m_hProvider,
150
throw new InvalidOperationException(SR.GetString(SR.Perflib_InvalidOperation_CounterRefValue, m_instance.
m_counterSet
.m_counterSet, CounterDef.Key, m_instance.m_instName));
225
Int32 CounterId = m_instance.
m_counterSet
.m_stringToId[counterName];