RFR: 8359110: Log accumulated GC and process CPU time upon VM exit [v8]
Jonas Norlinder
duke at openjdk.org
Mon Jun 16 12:50:17 UTC 2025
> Add support to log CPU cost for GC during VM exit with `-Xlog:gc`.
>
>
> [1.500s][info ][gc] GC CPU cost: 1.75%
>
>
> Additionally, detailed information may be retrieved with `-Xlog:gc=trace`
>
>
> [1.500s][trace][gc] Process CPU time: 4.945370s
> [1.500s][trace][gc] GC CPU time: 0.086382s
> [1.500s][info ][gc] GC CPU cost: 1.75%
Jonas Norlinder has updated the pull request incrementally with one additional commit since the last revision:
operation_is_gc -> is_gc_operation per @stefank suggestion
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25779/files
- new: https://git.openjdk.org/jdk/pull/25779/files/2ac00321..b20c9740
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25779&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25779&range=06-07
Stats: 8 lines in 7 files changed: 0 ins; 0 del; 8 mod
Patch: https://git.openjdk.org/jdk/pull/25779.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25779/head:pull/25779
PR: https://git.openjdk.org/jdk/pull/25779
More information about the hotspot-runtime-dev
mailing list