> Enhance os::pd_print_cpu_info on macOS and Windows by information about CPU > frequency and caches. > On Windows , this info can be obtained by the Processor Power Information API > or "powerbase" (CallNtPowerInformation , see > https://learn.microsoft.com/en-us/windows/win32/api/powerbase/nf-powerbase-callntpowerinformation > ); this is available since Windows Server 2003/XP. > On macOS, sysctlbyname can be used.
Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: Do not print idle state infos on Windows, print same MHz values for all proces only once ------------- Changes: - all: https://git.openjdk.org/jdk/pull/12403/files - new: https://git.openjdk.org/jdk/pull/12403/files/9a311018..2811225e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=12403&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12403&range=03-04 Stats: 29 lines in 1 file changed: 26 ins; 2 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/12403.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12403/head:pull/12403 PR: https://git.openjdk.org/jdk/pull/12403