RFR: 8346264: "Total compile time" counter should include time spent in failing/bailout compiles [v2]
Aleksey Shipilev
shade at openjdk.org
Mon Dec 16 19:58:37 UTC 2024
On Mon, 16 Dec 2024 18:54:30 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
> Would be nice to add separate time for failed/bailout compilations to get sense how much time we spend in them.
`CompileBroker` already gathers it, and it is printed in `-XX:+CITime`:
$ java -XX:+CITime -Xcomp
...
Accumulated compiler times
----------------------------------------------------------
Total compilation time : 1.443 s
Standard compilation : 1.443 s, Average : 0.000 s
Bailed out compilation : 0.000 s, Average : 0.000 s
On stack replacement : 0.000 s, Average : 0.000 s
Invalidated : 0.000 s, Average : 0.000 s
I don't think exposing bailed/failed time in `CompilerMXBean` would work well, as it is a public API. We can extend the JFR `CompilerStatistics` event, perhaps separately?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22760#issuecomment-2546603208
More information about the hotspot-compiler-dev
mailing list