On Mon, 12 Jul 2021 03:46:23 GMT, xpbob <github.com+7837910+xp...@openjdk.org> wrote:
> > Thanks for the update. `getProcessCpuLoad()` and `getCpuLoad()` looks way > > too similar to me. Is there a way to make them more generic and do the > > process vs. system paths as needed? I think there is. > > use getCpuLoadWithTarget for process and system Thanks. We are getting there. I've proposed a PR to your branch which makes this a bit easier to read: https://github.com/xpbob/jdk/pull/1 If you merge that it'll show up in this PR. ------------- PR: https://git.openjdk.java.net/jdk/pull/4702