RFR: 8342818: Implement JEP 509: JFR CPU-Time Profiling [v10]

Johannes Bechberger jbechberger at openjdk.org
Wed May 28 17:57:00 UTC 2025


On Mon, 26 May 2025 15:42:57 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> > I will see if I can create an example with some other events that show the syntax, and then you can fill in the CPU-Time events.
> 
> I have a Mac, so I could not try it with an actual recording, but something like this:
> 
> ```
> [application.cpu-time-statistics]
> label = "CPU Time Samples Statistics"
> form = "COLUMN 'Successful Samples', 'Failed Samples', 'Total Samples', 'Lost Samples'
>         SELECT COUNT(S.startTime), COUNT(F.startTime), Count(A.startTime), SUM(L.lostSamples)
>         FROM 
>           CPUTimeSample AS S,
>           CPUTimeSample AS F,
>           CPUTimeSample AS A,
>           CPUTimeSampleLoss AS L
>         WHERE
>           S.failed = 'false' AND
>           F.failed = 'true'"
> ```

I implemented this now and removed the other statistics related views.

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

PR Comment: https://git.openjdk.org/jdk/pull/25302#issuecomment-2917155602


More information about the hotspot-jfr-dev mailing list