<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="11.0.0" />
System.Diagnostics.ICollectData
Prepares performance data for the performance DLL the system loads when working with performance counters.
namespace System.
Diagnostics
{
public interface ICollectData
{
void CloseData();
void CollectData(
int id,
IntPtr valueName,
IntPtr data,
int totalBytes,
out IntPtr res);
}
}