Closed
Description
Currently Redis client implementation depends PerformanceCounter class to get CPU time, which brings additional Windows specific nuget package Microsoft.Win32.Registry,System.Configuration.ConfigurationManager
each of these inturn brings additional packages creating dependency hell , instead of this it is better to use cross platform EventCounters .
As EventCounters is available in .NET 3.1 on wards , we can use it for .NET Core 3.1 target & older targets still use the PerformanceCounter as is.
Sample implementation of how to get cpu-usage is from Event Counter
Reference Resource
Metadata
Metadata
Assignees
Labels
No labels