RFR: 8359110: Log accumulated GC and process CPU time upon VM exit [v3]
Jonas Norlinder
duke at openjdk.org
Thu Jun 12 15:25:08 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 two additional commits since the last revision:
- Refactor shared logic into CollectedHeap, remove nominal logging and cost->usage
- Remove unnecessary assert
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25779/files
- new: https://git.openjdk.org/jdk/pull/25779/files/dbf314c7..aeb4ad04
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25779&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25779&range=01-02
Stats: 84 lines in 9 files changed: 17 ins; 62 del; 5 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-gc-dev
mailing list