2
2
// Licensed under the MIT License.
3
3
package com .microsoft .gctoolkit .parser ;
4
4
5
+ import com .microsoft .gctoolkit .GCToolKit ;
5
6
import com .microsoft .gctoolkit .event .GCCause ;
6
7
import com .microsoft .gctoolkit .event .GCCauses ;
7
8
import com .microsoft .gctoolkit .event .MemoryPoolSummary ;
@@ -28,7 +29,6 @@ public class GCLogTrace extends AbstractLogTrace {
28
29
private static final Logger LOGGER = Logger .getLogger (GCLogTrace .class .getName ());
29
30
30
31
private final boolean gcCauseDebugging = Boolean .getBoolean ("microsoft.debug.gccause" );
31
- // private final boolean debugging = Boolean.getBoolean("microsoft.debug");
32
32
33
33
public GCLogTrace (Matcher matcher ) {
34
34
super (matcher );
@@ -292,15 +292,16 @@ public void notYetImplemented() {
292
292
LOGGER .log (Level .FINE , "{0} : {1}" , new Object []{i , getGroup (i )});
293
293
}
294
294
LOGGER .fine ("-----------------------------------------" );
295
- //IntelliJ Eats this log output so it's displayed to stdout..
296
- //And yes, that means System.out.println is in here in on purpose
297
- //if ( debugging) {
298
- System .out .println (threadName + ", not implemented: " + getGroup (0 ));
299
- for (int i = 1 ; i < groupCount () + 1 ; i ++) {
300
- System .out .println (i + ": " + getGroup (i ));
301
- }
302
- System .out .println ("-----------------------------------------" );
303
- //}
295
+ //IntelliJ Eats this log output, so it's displayed to stdout
296
+ GCToolKit .LOG_DEBUG_MESSAGE (() -> {
297
+ StringBuilder debugMessage = new StringBuilder ();
298
+ debugMessage .append (threadName ).append (", not implemented: " ).append (getGroup (0 )).append (System .lineSeparator ());
299
+ for (int i = 1 ; i < groupCount () + 1 ; i ++) {
300
+ debugMessage .append (i ).append (": " ).append (getGroup (i )).append (System .lineSeparator ());
301
+ }
302
+ debugMessage .append ("-----------------------------------------" );
303
+ return debugMessage .toString ();
304
+ });
304
305
}
305
306
306
307
public ZGCPhase getZCollectionPhase () {
0 commit comments