RFR: 8358619: Fix interval recomputation in CPU Time Profiler
Erik Gahlin
egahlin at openjdk.org
Tue Jul 1 22:10:41 UTC 2025
On Thu, 12 Jun 2025 09:27:30 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:
> Fixes the recomputation issue by passing either the rate or the period directly to the sampler (instead of just the rate value with the period value converted into a rate). This prevents issues when the number of cores changes during the JFR recording.
Why was the class renamed to TimespanRateOrPeriod?
I believe the name TimespanRate was chosen to indicate that it could represent both a timespan (e.g., 20 ms) and a rate (e.g., 1000/s). If you think period is more appropriate than timespan, how about RatePeriod?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25775#issuecomment-3025671727
More information about the hotspot-jfr-dev
mailing list