martinzink commented on pull request #1152: URL: https://github.com/apache/nifi-minifi-cpp/pull/1152#issuecomment-945972274
> Would it be feasible to create something that supports both windows and linux? PDH and this solve the same problem on different platforms in an incompatible way, but usually we try to write multiplatform code that works similarly on all supported platforms. In my opition (unfortunately) this problem is too OS specific to be generalized. Windows and Linux has different terminology for these performance metrics (e.g. they handle memory quite differently. they count cpu cycles differently etc) The basics which can be generalized are already included in the heartbeat https://issues.apache.org/jira/browse/MINIFICPP-1504 The other features of the PerformanceDataMonitor (you can subsribe to any windows specific counter) dont really overlap with this processor. If we really wanted to create a platformindependent processor we would have to come up with new nonstandard terminology and map the windows performance metrics to linux ones, and vica-versa. The windows version tries to emulate the Windows Performance Monitor, while this tries to emulate the how top/htop works on linux. (both these tools and their terminology are widely known by sysadmins) I couldnt find any program that has close to the same feature set as these and would work both on windows and linux. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
