RFR: 8342818: Implement JEP 509: JFR CPU-Time Profiling
Johannes Bechberger
jbechberger at openjdk.org
Thu Jun 5 06:32:52 UTC 2025
On Thu, 5 Jun 2025 06:10:09 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:
> This is the code for the [JEP 509: CPU Time based profiling for JFR](https://openjdk.org/jeps/509).
>
> Currently tested using [this test suite](https://github.com/parttimenerd/basic-profiler-tests). This runs profiles the [Renaissance](https://renaissance.dev/) benchmark with
>
> - ... different heap sizes
> - ... different GCs
> - ... different samplers (the standard JFR and the new CPU Time Sampler and both)
> - ... different JFR recording durations
> - ... different chunk-sizes
src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformEventType.java line 203:
> 201: this.cpuRate = rate;
> 202: if (isEnabled()) {
> 203: JVM.setCPUThrottle(rate.rate(), rate.autoAdapt());
but we need to set the throttle somewhere? Else changes are not propagated?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25654#discussion_r2128053153
More information about the hotspot-dev
mailing list