RFR: 8342818: Implement JEP 509: JFR CPU-Time Profiling [v5]
Johannes Bechberger
jbechberger at openjdk.org
Mon May 26 15:42:55 UTC 2025
On Mon, 26 May 2025 15:31:53 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:
>> 
>
>> Sorry, you represent the sampling period value as ticks, not nanos. Its a Tickspan after all.
>
> I don't. I represent it as a Tickspan, as I substract two TimeInstants:
>
>
> TimeInterval<Rep, TimeSource> operator-(const TimeInstant<Rep, TimeSource>& start) const {
> return TimeInterval<Rep, TimeSource>(*this, start);
> }
Regarding JMC: I had to enable the experimental events in the preferences. Now it shows:

So all is fine.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25302#discussion_r2107580724
More information about the hotspot-jfr-dev
mailing list