RFR: 8359110: Log accumulated GC and process CPU time upon VM exit [v20]

Jonas Norlinder duke at openjdk.org
Thu Jul 3 11:16:01 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 incrementally with two additional commits since the last revision:

 - Remove unnecessary include
 - Remove unnecessary includes, explicit thread type and make log_gc_cpu_time private

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25779/files
  - new: https://git.openjdk.org/jdk/pull/25779/files/c3a7258b..a6564c70

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25779&range=19
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25779&range=18-19

  Stats: 8 lines in 5 files changed: 2 ins; 5 del; 1 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