You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reduce duplication: introduce common PerfCounterQuery interface #3258
9 perfmon driver classes in each module (oshi-core and oshi-core-ffm) follow the same pattern — calling queryValues or queryInstancesAndValues with constants from oshi-common. Only the utility class name differs (PerfCounterQuery vs PerfCounterQueryFFM).
Estimated duplicated code: ~545 lines across 18 files.
Introduce a common PerfCounterQuery interface in oshi-common that both JNA and FFM implementations satisfy. The perfmon drivers could then be single implementations in oshi-common, parameterized by the query utility.
Additionally, the PerfmonDisabled check is present in JNA but absent in FFM — this inconsistency should be resolved by incorporating the check into the abstraction layer itself.
Activity
Introduce PerfCounterQueryExecutor and add common perfmon methods (#3258
Migrate WMI and perfmon drivers to delegate to common methods (#3257, #…