RFR: 8291753: Add JFR event for GC CPU Time
Erik Gahlin
egahlin at openjdk.org
Thu Aug 11 19:34:55 UTC 2022
On Thu, 4 Aug 2022 23:58:02 GMT, Sangheon Kim <sangheki at openjdk.org> wrote:
> 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
Does this event doesn't provide CPU usage for ZGC and Shenandoah?
-------------
PR: https://git.openjdk.org/jdk/pull/9760
More information about the hotspot-gc-dev
mailing list