mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8366896: JFR: Use GarbageCollection.name in gc view
Reviewed-by: mgronlun
This commit is contained in:
parent
52e5504627
commit
77a71c5b09
@ -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"
|
||||
|
||||
@ -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");
|
||||
}
|
||||
|
||||
@ -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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user