From 2a2535c048f0372a423e90828cd8f7f3aa5245ba Mon Sep 17 00:00:00 2001 From: chewiebug Date: Mon, 10 Jun 2019 18:17:46 +0200 Subject: [PATCH] #216 also support parsing of phases for Serial, Parallel, CMS, G1 and Shenandoah collectors --- .../imp/DataReaderUnifiedJvmLogging.java | 26 +++++++++-- .../perf/gcviewer/model/AbstractGCEvent.java | 18 ++++++++ .../perf/gcviewer/UnittestHelper.java | 3 +- .../gcviewer/imp/TestDataReaderUJLCMS.java | 39 ++++++++++++++++ .../gcviewer/imp/TestDataReaderUJLG1.java | 40 ++++++++++++++++ .../imp/TestDataReaderUJLParallel.java | 46 +++++++++++++++++++ .../gcviewer/imp/TestDataReaderUJLSerial.java | 31 +++++++++++++ .../imp/TestDataReaderUJLShenandoah.java | 39 ++++++++++++++++ .../gcviewer/imp/TestDataReaderUJLZGC.java | 46 +++++++++++-------- .../SampleShenandoahAllocationFailure.txt | 4 +- 10 files changed, 265 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderUnifiedJvmLogging.java b/src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderUnifiedJvmLogging.java index 1b8073b0..a7f0c249 100644 --- a/src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderUnifiedJvmLogging.java +++ b/src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderUnifiedJvmLogging.java @@ -46,6 +46,7 @@ * For more information about Shenandoah see: Shenandoah Wiki at OpenJDK */ public class DataReaderUnifiedJvmLogging extends AbstractDataReader { + // TODO also parse "Allocation Stall (main)" events // matches the whole line and extracts decorators from it (decorators always appear between [] and are independent of the gc algorithm being logged) // Input: [0.693s][info][gc ] GC(0) Pause Init Mark 1.070ms @@ -58,7 +59,7 @@ public class DataReaderUnifiedJvmLogging extends AbstractDataReader { // Regex: ^(?:\[(?