RFR: 8366896: JFR: Use GarbageCollection.name in gc view [v2]

Markus Grönlund mgronlun at openjdk.org
Thu Sep 25 10:38:55 UTC 2025


On Tue, 23 Sep 2025 16:53:29 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

>> Could I have a review of a PR that fixes the 'jfr gc view'?
>> 
>> 
>> Before:
>> 
>>     $ jfr view gc z.jfr
>>     
>>                                   Garbage Collections
>>     
>>     Start    GC ID Type                  Heap Before GC Heap After GC Longest Pause
>>     -------- ----- --------------------- -------------- ------------- -------------
>>     N/A         61 Unknown                       5.2 GB           N/A           N/A
>>     N/A         63 Unknown                       7.2 GB           N/A           N/A
>>     16:13:43     0 Unknown                     868.0 MB        1.6 GB    0.00808 ms
>>     16:13:43     1 Unknown                       1.7 GB        3.8 GB    0.00796 ms
>>     16:13:44     2 Unknown                       3.8 GB        9.0 GB     0.0136 ms
>>     
>>     $ jfr view gc shen.jfr
>>     
>>                                   Garbage Collections
>>     
>>     Start    GC ID Type                  Heap Before GC Heap After GC Longest Pause
>>     -------- ----- --------------------- -------------- ------------- -------------
>>     16:16:07     0 Unknown                       2.3 GB        4.9 GB      0.139 ms
>>     16:16:08     1 Unknown                       4.9 GB        6.3 GB     0.0693 ms
>>     16:16:09     2 Unknown                       6.3 GB        1.2 GB     0.0812 ms
>>     16:16:09     3 Unknown                       1.8 GB        5.2 GB     0.0824 ms
>>     16:16:09     4 Unknown                       5.2 GB        9.0 GB     0.0930 ms
>>     
>>     $ jfr view gc g1.jfr
>>     
>>                                     Garbage Collections
>>     
>>     Start    GC ID Type                     Heap Before GC Heap After GC Longest Pause
>>     -------- ----- ------------------------ -------------- ------------- -------------
>>     14:45:23     0 Young Garbage Collection        49.1 MB       14.2 MB       2.52 ms
>>     14:45:24     1 Old Garbage Collection          46.2 MB       24.6 MB       16.1 ms
>>     14:45:24     2 Old Garbage Collection          40.6 MB       24.6 MB       12.0 ms
>>     14:45:25     3 Young Garbage Collection        40.6 MB       41.2 MB      0.946 ms
>>     14:45:25     4 Old Garbage Collection          41.2 MB       49.2 MB           0 s
>>     
>>     $ jfr view gc serial.jfr
>>     
>>                                     Garbage Collections
>>     
>>     Start    GC ID Type                     Heap Before GC Heap After GC Longest Pause
>>     -------- ----- ------------------------ -------------- ------------- ----------...
>
> Erik Gahlin has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Use column name Name and update tests
>  - Update to use GC.name

Marked as reviewed by mgronlun (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/27099#pullrequestreview-3266996251


More information about the hotspot-jfr-dev mailing list