RFR: 8359110: Log accumulated GC and process CPU time upon VM exit [v17]
Jonas Norlinder
duke at openjdk.org
Thu Jul 3 07:40:56 UTC 2025
> Add support to log CPU cost for GC during VM exit with `-Xlog:gc+cpu`.
>
>
> [2,430s][info][gc,cpu] GC CPU usage: 22,87% (Process: 26,8926s GC: 6,1491s)
Jonas Norlinder has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 27 commits:
- Move call to print_tracing_info
- Merge branch 'master' into gc_cpu_time
- Remove static and move string_dedup_cpu_time into elapsed_gc_cpu_time
- Fixes after @albertnetymk review
- Change output per discussion
- Make stop protected, remove integer divison, remove unused method
- Update closure name
- vtime -> cpu_time and _vm_vtime -> _vmthread_cpu_time
- Fixes after review from @stefank
- Merge branch 'master' of github.com:JonasNorlinder/openjdk_jdk into gc_cpu_time
- ... and 17 more: https://git.openjdk.org/jdk/compare/c75df634...f9c3aa64
-------------
Changes: https://git.openjdk.org/jdk/pull/25779/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25779&range=16
Stats: 258 lines in 16 files changed: 244 ins; 9 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