8366896: JFR: Use GarbageCollection.name in gc view

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2025-09-25 12:08:39 +00:00
parent 52e5504627
commit 77a71c5b09
3 changed files with 6 additions and 8 deletions

View File

@ -290,18 +290,16 @@ table = "SELECT finalizableClass, LAST_BATCH(objects) AS O, LAST_BATCH(totalFina
[jvm.gc]
label = "Garbage Collections"
table = "COLUMN 'Start', 'GC ID', 'Type', 'Heap Before GC', 'Heap After GC', 'Longest Pause'
table = "COLUMN 'Start', 'GC ID', 'GC Name', 'Heap Before GC', 'Heap After GC', 'Longest Pause'
FORMAT none, none, missing:Unknown, none, none, none
SELECT G.startTime, gcId, [Y|O].eventType.label,
SELECT G.startTime, gcId, G.name,
B.heapUsed, A.heapUsed, longestPause
FROM
GarbageCollection AS G,
GCHeapSummary AS B,
GCHeapSummary AS A,
OldGarbageCollection AS O,
YoungGarbageCollection AS Y
GCHeapSummary AS A
WHERE B.when = 'Before GC' AND A.when = 'After GC'
GROUP BY gcId ORDER BY G.startTime"
GROUP BY gcId ORDER BY gcId"
[jvm.gc-concurrent-phases]
label = "Concurrent GC Phases"

View File

@ -163,7 +163,7 @@ public class TestJcmdView {
// Verify verbose heading
output.shouldContain("(longestPause)");
// Verify row contents
output.shouldContain("Old Garbage Collection");
output.shouldContain("G1");
// Verify verbose query
output.shouldContain("SELECT");
}

View File

@ -84,7 +84,7 @@ public class TestView {
// Verify verbose heading
output.shouldContain("(longestPause)");
// Verify row contents
output.shouldContain("Old Garbage Collection");
output.shouldContain("G1");
// Verify verbose query
output.shouldContain("SELECT");
}