1 write to categoryData
System (1)
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
101
categoryData
= GetCategoryData();
45 references to categoryData
System (45)
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (45)
105
if (
categoryData
.UseUniqueSharedMemory) {
115
if (!
categoryData
.CounterNames.Contains(counterName))
118
this.counterEntryPointer = GetCounter(counterName, instanceName,
categoryData
.EnableReuse, lifetime);
125
return
categoryData
.FileMapping;
150
Debug.Assert(!
categoryData
.UseUniqueSharedMemory, "We should never be calling CalculateAndAllocateMemory in the unique shared memory");
209
totalSize = CategoryEntrySize + InstanceEntrySize + (CounterEntrySize *
categoryData
.CounterNames.Count) + categoryNameLength;
210
for (int i=0; i<
categoryData
.CounterNames.Count; i++) {
211
totalSize += (((string)
categoryData
.CounterNames[i]).Length + 1) * 2;
214
if (
categoryData
.UseUniqueSharedMemory) {
262
nextPtr += CounterEntrySize *
categoryData
.CounterNames.Count;
264
if (
categoryData
.UseUniqueSharedMemory) {
287
string counterName = (string)
categoryData
.CounterNames[0];
295
for (int i=1; i<
categoryData
.CounterNames.Count; i++) {
297
counterName = (string)
categoryData
.CounterNames[i];
317
if (
categoryData
.UseUniqueSharedMemory) {
328
int totalSize = InstanceEntrySize + (CounterEntrySize *
categoryData
.CounterNames.Count);
334
if (
categoryData
.UseUniqueSharedMemory) {
352
for (int i=0; i<
categoryData
.CounterNames.Count; i++) {
353
totalSize += (((string)
categoryData
.CounterNames[i]).Length + 1) * 2;
368
nextPtr += CounterEntrySize *
categoryData
.CounterNames.Count;
370
if (
categoryData
.UseUniqueSharedMemory) {
389
if (
categoryData
.UseUniqueSharedMemory) {
400
for (int i=1; i<
categoryData
.CounterNames.Count; i++) {
416
for (int i=0; i<
categoryData
.CounterNames.Count; i++) {
417
string counterName = (string)
categoryData
.CounterNames[i];
442
if (
categoryData
.UseUniqueSharedMemory) {
457
Debug.Assert(!
categoryData
.UseUniqueSharedMemory, "We should never be calling CreateCounter in the unique shared memory");
727
SharedUtils.EnterMutexWithoutGlobal(
categoryData
.MutexName, ref mutex);
733
if (
categoryData
.UseUniqueSharedMemory)
744
if (!
categoryData
.UseUniqueSharedMemory)
762
if (
categoryData
.UseUniqueSharedMemory)
787
if (!
categoryData
.UseUniqueSharedMemory)
793
if (
categoryData
.UseUniqueSharedMemory) {
926
int totalSize = InstanceEntrySize + ProcessLifetimeEntrySize + InstanceNameSlotSize + (CounterEntrySize *
categoryData
.CounterNames.Count);
954
if (
categoryData
.UseUniqueSharedMemory)
989
SharedUtils.EnterMutexWithoutGlobal(
categoryData
.MutexName, ref mutex);
1045
if (
categoryData
.UseUniqueSharedMemory) {
1063
bool noSpinLock = (lockInstancePointer == currentInstancePointer) ||
categoryData
.UseUniqueSharedMemory;
1084
if (
categoryData
.UseUniqueSharedMemory) {
1115
if (!
categoryData
.UseUniqueSharedMemory)
1121
SharedUtils.EnterMutexWithoutGlobal(
categoryData
.MutexName, ref mutex);
1299
SharedUtils.EnterMutexWithoutGlobal(
categoryData
.MutexName, ref mutex);
1338
SharedUtils.EnterMutexWithoutGlobal(
categoryData
.MutexName, ref mutex);
1351
if (
categoryData
.UseUniqueSharedMemory) {
1394
if (!
categoryData
.UseUniqueSharedMemory) {