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

Erik Gahlin egahlin at openjdk.org
Mon May 26 15:45:55 UTC 2025


On Mon, 26 May 2025 14:20:41 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(T.failed), COUNT(F.failed), Count(A.failed), SUM(L.lostSamples)
        FROM 
          CPUTimeSample AS T,
          CPUTimeSample AS F,
          CPUTimeSample AS A,
          CPUTimeSampleLoss AS L
        WHERE
          T.failed = 'true' AND
          F.failed = 'false'"


 I removed biased, because I wonder If we should have such a field? There can be many types of biases, and the implementation may change in the future.

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

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


More information about the hotspot-jfr-dev mailing list