Remove dependency on PerfCounter.dll (#45142)
authorEric StJohn <ericstj@microsoft.com>
Tue, 1 Dec 2020 21:50:11 +0000 (13:50 -0800)
committerGitHub <noreply@github.com>
Tue, 1 Dec 2020 21:50:11 +0000 (13:50 -0800)
commit808f5439c663670c15406e9da2144ac2d86773ec
treefa7b0381f64a9557f1638749d9ec552059371bbb
parent301056d6ff8f5ac0dea7fe07a8b450754ad846cb
Remove dependency on PerfCounter.dll (#45142)

* Remove dependency on PerfCounter.dll

This dependency was unnecessary and only for calling through to pdh.dll.

PerfCounter.dll is still needed for the consumption side of performance
counters, but removing from the dependency from the .NET can help enable
some scenarios like reading non-.NET counters.

* Update conditions on performance counter tests.

* Condition more perf counter tests
13 files changed:
src/libraries/Common/src/Interop/Windows/Interop.Libraries.cs
src/libraries/Common/src/Interop/Windows/Pdh/Interop.PdhFormatFromRawValue.cs [moved from src/libraries/Common/src/Interop/Windows/PerfCounter/Interop.FormatFromRawValue.cs with 78% similarity]
src/libraries/System.Diagnostics.PerformanceCounter/src/System.Diagnostics.PerformanceCounter.csproj
src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/CounterSampleCalculator.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterCreationDataCollectionTests.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterCreationDataTests.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterSampleCalculatorTests.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/CounterSampleTests.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/Helpers.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/InstanceDataTests.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs
src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceDataTests.cs