When does the 'Optional<Duration> totalCpuDuration();' method of ProcessHandle.Info return information?
I've tried with and without sudo, doesn't seem to make much difference; either way only the current process returns non-empty value. The documentation does not say much.
What stops the JVM stdlib running under sudo (on MacOS or Linux) from getting that information? Is it just not implemented? Would getting that info be too slow?