1 instantiation of PerformanceCounterLib
System (1)
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
935
PerformanceCounterLib library = new
PerformanceCounterLib
(machineName, lcidString);
64 references to PerformanceCounterLib
System (64)
services\monitoring\system\diagnosticts\InstanceDataCollection.cs (1)
65
instanceName =
PerformanceCounterLib
.SingleInstanceName;
services\monitoring\system\diagnosticts\PerformanceCounter.cs (9)
182
helpMsg =
PerformanceCounterLib
.GetCounterHelp(currentMachineName, currentCategoryName, this.counterName);
232
CategorySample categorySample =
PerformanceCounterLib
.GetCategorySample(currentMachineName, currentCategoryName);
392
PerformanceCounterLib
.CloseAllLibraries();
496
if (!
PerformanceCounterLib
.CounterExists(currentMachineName, currentCategoryName, counterName))
499
PerformanceCounterCategoryType categoryType =
PerformanceCounterLib
.GetCategoryType(currentMachineName, currentCategoryName);
516
if (currentMachineName != "." && String.Compare(currentMachineName,
PerformanceCounterLib
.ComputerName, StringComparison.OrdinalIgnoreCase) != 0)
521
if (!
PerformanceCounterLib
.IsCustomCategory(currentMachineName, currentCategoryName))
525
PerformanceCounterCategoryType categoryType =
PerformanceCounterLib
.GetCategoryType(currentMachineName, currentCategoryName);
560
CategorySample categorySample =
PerformanceCounterLib
.GetCategorySample(currentMachineName, currentCategoryName);
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (22)
107
categoryHelp =
PerformanceCounterLib
.GetCategoryHelp(this.machineName, this.categoryName);
115
CategorySample categorySample =
PerformanceCounterLib
.GetCategorySample(machineName, categoryName);
123
if (
PerformanceCounterLib
.IsCustomCategory(".", categoryName))
124
return
PerformanceCounterLib
.GetCategoryType(".", categoryName);
166
return
PerformanceCounterLib
.CounterExists(machineName, categoryName, counterName);
195
return
PerformanceCounterLib
.CounterExists(machineName, categoryName, counterName);
250
if (
PerformanceCounterLib
.IsCustomCategory(machineName, categoryName) ||
PerformanceCounterLib
.CategoryExists(machineName , categoryName))
254
PerformanceCounterLib
.RegisterCategory(categoryName, categoryType, categoryHelp, counterData);
339
if (!
PerformanceCounterLib
.IsBaseCounter(currentSampleType))
343
else if (
PerformanceCounterLib
.IsBaseCounter(currentSampleType)) {
397
if (!
PerformanceCounterLib
.IsCustomCategory(machineName, categoryName))
402
PerformanceCounterLib
.UnregisterCategory(categoryName);
403
PerformanceCounterLib
.CloseAllLibraries();
437
if (
PerformanceCounterLib
.IsCustomCategory(machineName , categoryName))
440
return
PerformanceCounterLib
.CategoryExists(machineName , categoryName);
451
CategorySample categorySample =
PerformanceCounterLib
.GetCategorySample(machineName, categoryName);
457
if (instanceNames.Length == 1 && instanceNames[0].CompareTo(
PerformanceCounterLib
.SingleInstanceName) == 0)
485
string[] counterNames =
PerformanceCounterLib
.GetCounters(machineName, categoryName);
511
string[] categoryNames =
PerformanceCounterLib
.GetCategories(machineName);
539
CategorySample categorySample =
PerformanceCounterLib
.GetCategorySample(machineName, categoryName);
578
CategorySample categorySample =
PerformanceCounterLib
.GetCategorySample(this.machineName, this.categoryName);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (27)
254
PerformanceCounterLib
library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
277
foreach (
PerformanceCounterLib
library in libraryTable.Values)
286
foreach (
PerformanceCounterLib
library in libraryTable.Values)
308
PerformanceCounterLib
library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
651
&& (String.Compare((string)systemDllName,
PerformanceCounterLib
.PerfShimName, StringComparison.OrdinalIgnoreCase) == 0
652
|| ((string)systemDllName).EndsWith(
PerformanceCounterLib
.PerfShimFullNameSuffix, StringComparison.OrdinalIgnoreCase))) {
683
PerformanceCounterLib
library;
705
PerformanceCounterLib
library;
742
PerformanceCounterLib
library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
775
PerformanceCounterLib
library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
827
PerformanceCounterLib
library;
915
internal static
PerformanceCounterLib
GetPerformanceCounterLib(string machineName, CultureInfo culture) {
924
if (
PerformanceCounterLib
.libraryTable == null) {
926
if (
PerformanceCounterLib
.libraryTable == null)
927
PerformanceCounterLib
.libraryTable = new Hashtable();
932
if (
PerformanceCounterLib
.libraryTable.Contains(libraryKey))
933
return (
PerformanceCounterLib
)
PerformanceCounterLib
.libraryTable[libraryKey];
935
PerformanceCounterLib
library = new PerformanceCounterLib(machineName, lcidString);
936
PerformanceCounterLib
.libraryTable[libraryKey] = library;
1047
PerformanceCounterLib
library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
1081
PerformanceCounterLib
library = GetPerformanceCounterLib(machine, new CultureInfo(EnglishLCID));
1191
if (machineName != "." && String.Compare(machineName,
PerformanceCounterLib
.ComputerName, StringComparison.OrdinalIgnoreCase) != 0) {
1298
private
PerformanceCounterLib
library;
1300
internal unsafe CategorySample(byte[] data, CategoryEntry entry,
PerformanceCounterLib
library) {
1361
if (!
PerformanceCounterLib
.IsBaseCounter(currentSampleType)) {
1377
this.InstanceNameTable[
PerformanceCounterLib
.SingleInstanceName] = 0;
services\monitoring\system\diagnosticts\ProcessManager.cs (4)
749
PerformanceCounterLib
library = null;
751
library =
PerformanceCounterLib
.GetPerformanceCounterLib(machineName, new CultureInfo(0x009));
766
static ProcessInfo[] GetProcessInfos(
PerformanceCounterLib
library) {
790
static ProcessInfo[] GetProcessInfos(
PerformanceCounterLib
library, int processIndex, int threadIndex, byte[] data) {
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
616
categoryKey = Registry.LocalMachine.OpenSubKey(
PerformanceCounterLib
.ServicePath + "\\" + categoryName + "\\Performance");