Currently the CPUInformation JFR event
https://sap.github.io/SapMachine/jfrevents/#cpuinformation
contains some info about the CPU (like a description, socket and cores), but misses CPU frequency information.
This could be added.
Windows : the powerprof API can be used
macOS : syctlbyname
(see https://bugs.openjdk.org/browse/JDK-8301661 )
Linux : /proc/cpuinfo might contain the information, but also /sys/devices/system/cpu might contain some info.
https://sap.github.io/SapMachine/jfrevents/#cpuinformation
contains some info about the CPU (like a description, socket and cores), but misses CPU frequency information.
This could be added.
Windows : the powerprof API can be used
macOS : syctlbyname
(see https://bugs.openjdk.org/browse/JDK-8301661 )
Linux : /proc/cpuinfo might contain the information, but also /sys/devices/system/cpu might contain some info.