RFR: 8342818: Implement CPU Time Profiling for JFR

Markus Grönlund mgronlun at openjdk.org
Wed Oct 30 16:48:15 UTC 2024


On Wed, 28 Aug 2024 16:47:21 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:

> This is the code for the [JEP draft: CPU Time based profiling for JFR].

Please make sure you test this also on non-Linux platforms:

Java HotSpot(TM) 64-Bit Server VM warning: CPU time method sampling not supported in JFR on your platform
java.lang.RuntimeException: Incorrect settings value for jdk.CPUTimeSample#throttle was 0/s, expected 500/s expected: 500/s but was: 0/s
	at jdk.test.lib.Asserts.fail(Asserts.java:691)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:204)
	at jdk.jfr.event.runtime.TestActiveSettingEvent.testSettingConfiguration(TestActiveSettingEvent.java:308)
	at jdk.jfr.event.runtime.TestActiveSettingEvent.testDefaultSettings(TestActiveSettingEvent.java:79)
	at jdk.jfr.event.runtime.TestActiveSettingEvent.main(TestActiveSettingEvent.java:65)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:573)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1576)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20752#issuecomment-2447774654


More information about the hotspot-dev mailing list