RFR: 8291753: Add JFR event for GC CPU Time [v2]

Sangheon Kim sangheki at openjdk.org
Mon Aug 15 01:42:14 UTC 2022


> Hi all,
> 
> Could I have reviews to add new JFR event for GC CPU time?
> Currently only log message is available for CPU time (user, system, real).
> As there is already GCTraceCPUTime class which is used for a log message, I added GCTracer to deliver the event.
> The log message of CPU time is printed after GC is completed and tried to keep same.
> 
> For G1, manually checked there is not difference.
> 
> For test, I had to add an exception as GCCpuTime will be generated after GC end.
> 
> Testing: tier 1 ~ 3
> 
> Thanks,
> Sangheon

Sangheon Kim has updated the pull request incrementally with one additional commit since the last revision:

  Add Serial GC support and split test.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9760/files
  - new: https://git.openjdk.org/jdk/pull/9760/files/981c4479..2075927c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9760&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9760&range=00-01

  Stats: 57 lines in 6 files changed: 34 ins; 8 del; 15 mod
  Patch: https://git.openjdk.org/jdk/pull/9760.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9760/head:pull/9760

PR: https://git.openjdk.org/jdk/pull/9760



More information about the hotspot-gc-dev mailing list